Search and Top Navigation
#6946 closed bug (fixed)
Opened February 05, 2011 08:09AM UTC
Closed March 07, 2011 03:53PM UTC
Last modified March 07, 2011 03:54PM UTC
Mouse: click event suppressed after drag in Gecko
Reported by: | awgy | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.8.11 |
Component: | ui.mouse | Version: | 1.8.9 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
It seems that Firefox and Opera (may be others) will not fire a click event if the element's DOM position is altered by a mouseup handler, while Webkit will. This means that the click event suppression flag set during mouseUp will remain until the next click event, causing it to be incorrectly suppressed. This affects the sortable plugin, causing an element's first click event to be suppressed after it has been dragged.
To fix this, I suggest looking for the
'preventClickEvent'flag in the
'mouse._mouseDown'handler and clearing it if it exists.
I've created a test case for this bug at http://jsbin.com/abipo3/6
Attachments (0)
Change History (3)
Changed February 05, 2011 08:19AM UTC by comment:1
Changed March 07, 2011 03:53PM UTC by comment:2
resolution: | → fixed |
---|---|
status: | new → closed |
Mouse: Reset click event suppression on next mousedown. Fixes #6946 - Mouse: click event suppressed after drag in Gecko(cherry picked from commit 548bdb12a116771b34a99ba97769ddef22f7d156)
Changeset: 15aec63edc10bffcce638ff5244b5faba1ef51fd
Changed March 07, 2011 03:54PM UTC by comment:3
milestone: | 1.9 → 1.8.11 |
---|
I've pushed the following commit to fix this issue:
https://github.com/voxwerk/jquery-ui/commit/548bdb12a116771b34a99ba97769ddef22f7d156
Related pull request:
https://github.com/jquery/jquery-ui/pull/104