[Webkit-unassigned] [Bug 49297] New: 'mouseup' directly following 'mousedown' but no 'click' event fired on a <button>

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 9 19:15:37 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=49297

           Summary: 'mouseup' directly following 'mousedown' but no
                    'click' event fired on a <button>
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P3
         Component: WebCore Misc.
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: roygoldman at hotmail.com


As you can see in the attached html file (and a video demonstrating the issue), "click" is not firing reliably corresponding to matching "mousedown" and "onmouseup" events on a <button>.

More specifically, my understanding is that if I press the mouse button down over a <button> element (which fires 'mousedown'), and then release the mouse button while my pointer is still over that <button>, I should always get not only a 'mouseup' event on that element but also a 'click.'

However, in the attached html document, it's very easy to get a situation where the 'click' event does not fire, as evidenced by the Click counter not matching the Down and Up counters. Please see the attached video as well. The problem seems to be worse if the mouse pointer moves in between down and up, but in all cases the mouse pointer is staying over/within the <button>.

Is this by design? If so, what is the filter that prevents click from firing in some cases?

Reproduced in (and video from) webkit-r71499.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list