Bug Tracker

Ticket #1920: slowModePatch.diff

File slowModePatch.diff, 1.1 KB (added by rbrackett, 15 years ago)

Fixed slowMode in ui.mouse.js for when drag handle is outside draggable's bounds

  • current/ui.mouse.js

     
    168168                                this.pos[1] -= o.po.top;
    169169                        }
    170170                       
    171                         this.slowMode = (o.cursorAt && (o.cursorAt.top-o.margins.top > 0 || o.cursorAt.bottom-o.margins.bottom > 0) && (o.cursorAt.left-o.margins.left > 0 || o.cursorAt.right-o.margins.right > 0)) ? true : false; //If cursorAt is within the helper, set slowMode to true
     171                        // slowMode: manually check the physical bounds of droppables for intersection, rather than using the mouseover and mouseout listeners
     172                        this.slowMode = (o.cursorAtIgnore || (o.cursorAt && (o.cursorAt.top-o.margins.top > 0 || o.cursorAt.bottom-o.margins.bottom > 0) && (o.cursorAt.left-o.margins.left > 0 || o.cursorAt.right-o.margins.right > 0))) ? true : false; //If cursorAt is ignored or within the helper, set slowMode to true
    172173                       
    173174                        if(!o.nonDestructive) $(this.helper).css('position', 'absolute');
    174175                        if(o.helper != 'original') $(this.helper).appendTo((o.appendTo == 'parent' ? a.parentNode : o.appendTo)).show();