aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard D. Worth <rdworth@gmail.com>2010-10-15 01:04:39 -0700
committerRichard D. Worth <rdworth@gmail.com>2010-10-15 01:04:39 -0700
commitec73a59c77c522a45b3a22ea74515c36b7db45a5 (patch)
tree33d3af616c7a5ba356061851cdaa332819385ca0
parent7eaedaad29c7c8c95f4d8f68c14f499f689d331d (diff)
downloadjquery-ui-ec73a59c77c522a45b3a22ea74515c36b7db45a5.tar.gz
jquery-ui-ec73a59c77c522a45b3a22ea74515c36b7db45a5.zip
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.
-rw-r--r--ui/jquery.ui.mouse.js2
1 files changed, 1 insertions, 1 deletions
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);
}