Ticket #3552: nested-mouse.patch

File nested-mouse.patch, 0.9 KB (added by scott.gonzalez, 19 months ago)
  • Users/sgonzale/Documents/workspace/jQuery

     
    412412        }, 
    413413 
    414414        _mouseDown: function(event) { 
     415                if (event.originalEvent.mouseHandled) { return; } 
     416                 
    415417                // we may have missed mouseup (out of window) 
    416418                (this._mouseStarted && this._mouseUp(event)); 
    417419 
     
    455457                // anymore, so this fix is needed 
    456458                ($.browser.safari || event.preventDefault()); 
    457459 
    458                 // was changed to return true in rev 1000 because that allows the 
    459                 // event to bubble - however, exactly that causes much pain for 
    460                 // nested widgets, so we call stopPropagation(). Building a work- 
    461                 // around for the above is much easier. 
    462                 event.stopPropagation(); 
     460                event.originalEvent.mouseHandled = true; 
    463461                return true; 
    464462        }, 
    465463