drag_and_drop.js
71.5 KB
-
Wait 500 milliseconds before starting drag on touch. · 6af15539
This allows users to scroll the item bank with their finger without accidentally starting to drag items. Mouse drag events still start without a delay, since scrolling works differently on desktops. I found no way to implement this with jQuery UI draggable, so I had to reimplement drag and drop interactions, which in some ways makes it cleaner because it doesn't bypass virtualDOM.
Matjaz Gregoric committed