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

Suggestion: include pointer type in event info #105

Open Samlibardi opened 6 years ago

Samlibardi commented 6 years ago

Including the pointer type in the event argument may be very useful. With this, the end dev is able to figure out whether he waits for the delay or don't. Example: touch drag-n-drop usually requires the delay, but for mouse users, it's not intuitive to wait to drag. So I've implemented this in a hacky way, but it would be nice if it was a given information in all slip events.