react-swipeable
Advanced tools
Changelog
7.0.1
swipeDuration
prop - "allowable duration of a swipe"
swipeDuration
, in milliseconds, will not be considered a swipe.
use-gesture
swipe.durationInfinity
for backwards compatibilitytouchEventOptions
prop that can set the options for the touch event listeners
{ passive: true }
onTouchStartOrOnMouseDown
prop that is called for touchstart
and mousedown
. Before a swipe even starts.
touchEventOptions
allows users the ability to now call preventDefault
on touchstart
onTouchEndOrOnMouseUp
prop that is called for touchend
and mouseup
.peerDependencies
Breaking Changes:
es5
transpiled output
es2015
for our transpilation now
swipeable
utilizes object/array spread & const/let nativelypreventScrollOnSwipe
- "new" prop. Replaces preventDefaultTouchmoveEvent
passive
event listener option for touchmove
depending on this prop
Bug fixes:
undefined
/falsy values to set cancelablePageSwipe
trackTouch
and trackMouse
were present that triggered an erroneous swipe when the user clicked outside and above the swipeable area
Infrastructure:
size-limit report
to PRs with bundle diff sizesrollup
for build & output
typescript
v4.6.3
react-redux
)
package.json
:
browser
, umd:main
(renamed dist
), jsnext:main
(use module
), typings
(use types
)"main": "./dist/react-swipeable.js"
=> "main": "./lib/index.js"
"module": "./dist/react-swipeable.module.js"
=> "module": "es/index.js"
"types": "./dist/index.d.ts"
=> "types": "./es/index.d.ts"
Changelog
v6.2.0
delta
prop can now be an object
specifying different values for each direction
microbundle
microbundle
upgrade due to rollup
output.interop