Skip to content

Commit ec73a59

Browse files
committed
Mouse: better check for not IE9 or greater in case mode was set by X-UA-Compatible. See http://msdn.microsoft.com/en-us/library/cc196988%28VS.85%29.aspx for more info. Fixes #5370 - All drag & drop events fail in IE9. Thanks xirzec.
1 parent 7eaedaa commit ec73a59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.mouse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ $.widget("ui.mouse", {
9393

9494
_mouseMove: function(event) {
9595
// IE mouseup check - mouseup happened when mouse was out of window
96-
if ($.browser.msie && parseInt($.browser.version, 10) < 9 && !event.button) {
96+
if ($.browser.msie && !(document.documentMode >= 9) && !event.button) {
9797
return this._mouseUp(event);
9898
}
9999

0 commit comments

Comments
 (0)