Skip to content

Commit

Permalink
Mouse: better check for not IE9 or greater in case mode was set by X-…
Browse files Browse the repository at this point in the history
…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
rdworth committed Oct 15, 2010
1 parent 7eaedaa commit ec73a59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/jquery.ui.mouse.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit ec73a59

Please sign in to comment.