Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Sortable: Calculating item distance and direction using a more robust al... #715

Closed
wants to merge 1 commit into
from
Commits on Sep 12, 2012
  1. Sortable: Calculating item distance and direction using a more robust…

    zhizhangchen committed Aug 17, 2012
    … algorithm to better support sorting among nested sortables
    
    Use the item which has the least distance bettween the mouse
    pointer and one of its borders to rearrange, with direction being
    determined by the nearest border.
    Also we use this algorithm to rearrange even when currentContainer
    is not changed to override the defective rearrangment in
    _mouseDrag