Permalink
Browse files

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.
  • Loading branch information...
1 parent 7eaedaa commit ec73a59c77c522a45b3a22ea74515c36b7db45a5 @rdworth rdworth committed Oct 15, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/jquery.ui.mouse.js
View
2 ui/jquery.ui.mouse.js
@@ -93,7 +93,7 @@ $.widget("ui.mouse", {
_mouseMove: function(event) {
// IE mouseup check - mouseup happened when mouse was out of window
- if ($.browser.msie && parseInt($.browser.version, 10) < 9 && !event.button) {
+ if ($.browser.msie && !(document.documentMode >= 9) && !event.button) {
return this._mouseUp(event);
}

0 comments on commit ec73a59

Please sign in to comment.