react-swipeable
Advanced tools
Changelog
v6.1.1
Changelog
v6.1.0
Add new event handler prop onSwipeStart
typescript updated to v4.1.3
and associated deps bumped to be compatible
Changelog
v6.0.1
first
property on SwipeEventData
always being true
.
first
is now only true
for the first event, then false
for subsequent eventsChangelog
v6.0.0
New Features:
addEventListener
passive
to false
only when preventDefaultTouchmoveEvent
is true
.onTap
event handler prop which executes its callback after a tap
vxvy
event data property
[ deltaX/time, deltaY/time]
- velocity per axisBreaking Changes:
<Swipeable>
component
deltaX
and deltaY
addEventListener
options object needs to be polyfilled, browser supportBug fixes:
Infrastructure:
EventData
-> SwipeEventData
- The event data provided for all swipe event callbacksSwipeableOptions
- use SwipeableProps
now<Swipeable>
componentTapCallback
- callback for the new onTap
prop handlerSwipeDirections
- "Left" | "Right" | "Up" | "Down"
@testing-library/react
, react testing librarymicrobundle
. microbundle
esmodule
property
Maintenance:
jest
, babel
, webpack
, eslint
, prettier
Changelog
5.5.0
first
property to eventData
that is true
for first swipe event issue #160 and PR #162