From ec73a59c77c522a45b3a22ea74515c36b7db45a5 Mon Sep 17 00:00:00 2001 From: "Richard D. Worth" Date: Fri, 15 Oct 2010 01:04:39 -0700 Subject: 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. --- ui/jquery.ui.mouse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/jquery.ui.mouse.js') 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); } -- cgit v1.2.3