react-touch
react-touch copied to clipboard
Swipable additional options
I want to prepare a PR which include two more options to Swipable config:
- swipeDurationTreshold - time in which swipe need to be completed to actually fire, when not set we assume infinity
- swipeMaxAxisDeviation - maximum Y (swipe Left/Right) or X(Bottom/UP) axis deviation in pixels that can be done while swiping to actually fire swipe event
Any thoughts how it should be prepared? Maybe You will have better naming suggestions. I guess I'll find some time next week.