Changeset 1818

Show
Ignore:
Timestamp:
01/27/09 17:21:50 (14 months ago)
Author:
scott.gonzalez
Message:

Mouse: Fixed #3552, reverted r1763: Let mouse events propagate.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ui/ui.core.js

    r1763 r1818  
    413413 
    414414        _mouseDown: function(event) { 
     415                // don't let more than one widget handle mouseStart 
     416                if (event.originalEvent.mouseHandled) { return; } 
     417 
    415418                // we may have missed mouseup (out of window) 
    416419                (this._mouseStarted && this._mouseUp(event)); 
     
    456459                ($.browser.safari || event.preventDefault()); 
    457460 
    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(); 
     461                event.originalEvent.mouseHandled = true; 
    463462                return true; 
    464463        },