kornelski / slip

Slip.js — UI library for manipulating lists via swipe and drag gestures
BSD 2-Clause "Simplified" License
2.44k stars 213 forks source link

Fire beforereorder even when using 'instant' drag mode. #20

Closed swalke16 closed 10 years ago

swalke16 commented 10 years ago

Previously, when handling 'beforewait' to allow for 'instant' drag mode by using event.preventDefault() the dragged item would go into reorder mode without firing the 'beforereorder' event. This prevented the use case of combining the 'instant' drag mode with handling 'beforereorder' to prevent dragging of non-draggable items.

kornelski commented 10 years ago

Good catch, thanks!

swalke16 commented 10 years ago

You’re welcome!  I’m happy it was a quick fix. :)

On September 5, 2014 at 10:26:43 AM, Kornel (notifications@github.com) wrote:

Good catch, thanks!

— Reply to this email directly or view it on GitHub.