Skip to content
Permalink
Browse files

Revert "Mouse: Changed mouseHandled check to a local var rather than …

…using originalEvent. Fixed #4333 - Nested draggables problem in IE"

This reverts commit 9c50bdf.
  • Loading branch information
scottgonzalez committed Aug 1, 2011
1 parent 38028f6 commit 350e4ab5b854d2f6aca22d5202c03dcbf59ff4aa
Showing with 4 additions and 8 deletions.
  1. +4 −8 ui/jquery.ui.mouse.js
@@ -12,11 +12,6 @@
*/
(function( $, undefined ) {

var mouseHandled = false;
$(document).mousedown(function(e) {
mouseHandled = false;
});

$.widget("ui.mouse", {
version: "@VERSION",
options: {
@@ -50,7 +45,9 @@ $.widget("ui.mouse", {

_mouseDown: function(event) {
// don't let more than one widget handle mouseStart
if(mouseHandled) {return};
// TODO: figure out why we have to use originalEvent
event.originalEvent = event.originalEvent || {};
if (event.originalEvent.mouseHandled) { return; }

// we may have missed mouseup (out of window)
(this._mouseStarted && this._mouseUp(event));
@@ -96,8 +93,7 @@ $.widget("ui.mouse", {
.bind('mouseup.'+this.widgetName, this._mouseUpDelegate);

event.preventDefault();

mouseHandled = true;
event.originalEvent.mouseHandled = true;
return true;
},

0 comments on commit 350e4ab

Please sign in to comment.
You can’t perform that action at this time.