Skip to content

Instantly share code, notes, and snippets.

@bgrins
Last active January 11, 2017 08:56
Show Gist options
  • Save bgrins/4723365 to your computer and use it in GitHub Desktop.
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
_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;
},
@lakshmiprasanna
Copy link

Thank you somuch its helped me a lot. but its not working in ie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment