Ticket #6946 (closed bug: fixed)

Opened 5 years ago

Last modified 5 years ago

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:
Blocking: Blocked by:


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

comment:1 Changed 5 years ago by awgy

comment:2 Changed 5 years ago by awgy

  • Status changed from new to closed
  • Resolution set to fixed

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 5 years ago by scott.gonzalez

  • Milestone changed from 1.9 to 1.8.11
Note: See TracTickets for help on using tickets.