react-swipeable
Advanced tools
Changelog
5.1.0
preventDefaultTouchmoveEvent
in safari issue #127 and PR #131
ref
callback for both <Swipeable>
and useSwipeable
to attach all touch event handlers
useSwipeable
's returned handlers
now contains a ref callbackpassive: true
issue from chrome document event listenerstouchmove
event listener needs to be attached before a touchstart
in order to be able to call e.preventDefault
touchHandlerOption
prop
Changelog
5.0.0
useSwipeable
size-limit
to help keep bundled size downes
export via "module": "es/index.js"
to package.json
prettier
code formatingonSwiped = ({ event, direction, absX, absY, velocity}) => console.log('swiped')
onSwiping{Left|Right|Up|Down}
handler props
dir
event dataonSwiping = ({ dir }) => console.log(`swiping - ${dir}`)
flickThreshold
stopPropagation
disabled
<Swipeable>
from being passed down
className
and style
get passed to <Swipeable>
's dom node, default div