Skip to content
Permalink
Browse files

Mouse: Limit mouseup out of window check to only versions of IE earli…

…er than 9 as IE9 has this fixed. Fixes #5370 - All drag & drop events fail in IE9.
  • Loading branch information...
rdworth committed Oct 14, 2010
1 parent 715f83f commit 8fcf58e29e4adfdcf9bef5c9e35bde932c165aa8
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 && !event.button) {
if ($.browser.msie && parseInt(jQuery.browser.version, 10) < 9 && !event.button) {
return this._mouseUp(event);
}

1 comment on commit 8fcf58e

@tstrohecker

This comment has been minimized.

Copy link

commented on 8fcf58e Mar 30, 2012

There is a small issue with this fix. You are checking the browser version, but what if they are running in compatability mode, and the document mode is IE9. Then the mouseup event would be fired when it shouldn' be. Quick fix.

   if ($.browser.msie && parseInt(jQuery.browser.version, 10) < 9 && !event.button) {
            var documentVersion = document.documentMode;
            if (documentVersion < 9) {
                return this._mouseUp(event);
            }
     }
Please sign in to comment.
You can’t perform that action at this time.