Mouse: Fix for binding touch events to mouse events (like UI Touch Punch) with Draggable #735

Closed
wants to merge 1 commit into
from
Jump to file
+3 −0
Split
View
@@ -114,6 +114,9 @@ $.widget("ui.mouse", {
if ($.browser.msie && !(document.documentMode >= 9) && !event.button) {
return this._mouseUp(event);
}
+
+ // Prevent ghost event
+ if (event.which === 0) return;
if (this._mouseStarted) {
this._mouseDrag(event);