Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update ui/jquery.ui.mouse.js

Using any touch to mouse extension, like UI Touch Punch, will create empty ghost events in Draggable. Patch checks for these and cancels.
  • Loading branch information...
commit a3771da70e50ede41a3e82fef9969ad1165e7934 1 parent e8bdf46
@pcvandam authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  ui/jquery.ui.mouse.js
View
3  ui/jquery.ui.mouse.js
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.