Mouse: click event suppressed after drag in Gecko
|Reported by:||awgy||Owned 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