Last active
January 11, 2017 08:56
-
-
Save bgrins/4723365 to your computer and use it in GitHub Desktop.
Iframe mouseup check. If mouseup happened on outer document, fire it on this one
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_mouseMove: function(event) { | |
// IE mouseup check - mouseup happened when mouse was out of window | |
if ($.ui.ie && ( !document.documentMode || document.documentMode < 9 ) && !event.button) { | |
return this._mouseUp(event); | |
} | |
// Iframe mouseup check. If mouseup happened on outer document, fire it on this one | |
else if (!event.which) { | |
return this._mouseUp(event); | |
} | |
if (this._mouseStarted) { | |
this._mouseDrag(event); | |
return event.preventDefault(); | |
} | |
if (this._mouseDistanceMet(event) && this._mouseDelayMet(event)) { | |
this._mouseStarted = | |
(this._mouseStart(this._mouseDownEvent, event) !== false); | |
(this._mouseStarted ? this._mouseDrag(event) : this._mouseUp(event)); | |
} | |
return !this._mouseStarted; | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you somuch its helped me a lot. but its not working in ie