From: Richard D. Worth Date: Fri, 15 Oct 2010 08:04:39 +0000 (-0700) Subject: Mouse: better check for not IE9 or greater in case mode was set by X-UA-Compatible... X-Git-Tag: 1.8.6~16 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ec73a59c77c522a45b3a22ea74515c36b7db45a5;p=jquery-ui.git 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. --- diff --git a/ui/jquery.ui.mouse.js b/ui/jquery.ui.mouse.js index 8e6cb93f9..d0c82f83f 100644 --- a/ui/jquery.ui.mouse.js +++ b/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); }