#6946 closed bug (fixed)
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
Change History (3)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
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
comment:3 Changed 12 years ago by
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