You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here are some ideas for improving Touchy. Please let me know how this list should be prioritized or expanded.
Thanks!
~ Bill
move all touchy data into the event object
more cross-browser support
integration with tools like grunt, npm, etc.
making Touchy more compliant with trends in jQuery plugin best practices (this is a direction, not a destination)
support for double tap, or the other TODO features laid out in the comments at the beginning of the code.
support for binding mouse events and touch events with a single line of code ("press" and "release" instead of touchstart/mousedown, etc.)
support for both mouse events and touch events on the same device (thinking in terms of laptops that have touchscreens -- the issue is to be able to handle both in the same environment.)
removing jQuery as a dependency, because jQuery is a bit bloated for mobile
a second sister project with a lot of common event handler code
some better way of facilitating delegation -- currently, Touchy is not event-delegation-friendly.
returning the angle that a drag is performed in (this is a user-requested feature)
create array of formerly touched x/y point data (user-requested feature)
configuration setting on a per-element basis, rather that global (user-requested feature)
specify the minimal distance before a drag is considered a drag on a per associated element basis -- see Pinch and Drag within the same element #13 (user-requested feature)
Here are some ideas for improving Touchy. Please let me know how this list should be prioritized or expanded.
Thanks!
~ Bill