Changeset 683

Show
Ignore:
Timestamp:
09/16/08 06:02:21 (18 months ago)
Author:
paul.bakaus
Message:

draggable, resizable, sortable: proper usage of _mouseCapture, fixes interaction issues when many plugins are used on the same element (Fixes #3164)

Location:
trunk/ui
Files:
3 modified

Legend:

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

    r681 r683  
    5656                 
    5757        }, 
    58         _mouseStart: function(e) { 
    59                  
     58 
     59        _mouseCapture: function(e) { 
     60 
    6061                var o = this.options; 
    6162                 
    6263                if (this.helper || o.disabled || $(e.target).is('.ui-resizable-handle')) 
    6364                        return false; 
    64                  
     65                         
    6566                //Quit if we're not on a valid handle 
    66                 var handle = this.getHandle(e); 
    67                 if (!handle) 
     67                this.handle = this.getHandle(e); 
     68                if (!this.handle) 
    6869                        return false; 
     70                 
     71                return true; 
     72 
     73        }, 
     74 
     75        _mouseStart: function(e) { 
     76                 
     77                var o = this.options; 
    6978                 
    7079                //Create and append the visible helper 
  • trunk/ui/ui.resizable.js

    r658 r683  
    258258                } 
    259259        }, 
    260         _mouseStart: function(e) { 
     260         
     261        _mouseCapture: function(e) { 
     262                 
    261263                if(this.options.disabled) return false; 
    262264                 
     
    266268                } 
    267269                if (!handle) return false; 
     270                 
     271                return true; 
     272                 
     273        }, 
     274         
     275        _mouseStart: function(e) { 
    268276                 
    269277                var o = this.options, iniPos = this.element.position(), el = this.element,  
  • trunk/ui/ui.sortable.js

    r682 r683  
    362362         
    363363        _mouseCapture: function(e, overrideHandle) { 
    364          
     364 
    365365                if(this.options.disabled || this.options.type == 'static') return false; 
    366366