Skip to content

Releases: FormidableLabs/react-swipeable

v5.3.0

17 Jun 03:43
Compare
Choose a tag to compare

5.3.0

v5.2.0

23 Apr 13:54
Compare
Choose a tag to compare

5.2.0

v5.1.0

28 Mar 03:45
Compare
Choose a tag to compare
  • Fix for preventDefaultTouchmoveEvent in safari issue #127 and PR #131
    • Thank you @JiiB and @bhj!
    • use ref callback for both <Swipeable> and useSwipeable to attach all touch event handlers
      • useSwipeable's returned handlers now contains a ref callback
      • Please see disscusion and comments in both #127 and #131 for more details and info.
        • fix avoids the passive: true issue from chrome document event listeners
        • fix avoids bug on safari where the touchmove event listener needs to be attached before a touchstart in order to be able to call e.preventDefault
  • removed touchHandlerOption prop
    • fix above deprecates this prop

v5.0.0

13 Feb 04:21
Compare
Choose a tag to compare
  • Introduce react hook, useSwipeable
  • Core rewrite to simplify api and trim down bundled size
  • Add size-limit to help keep bundled size down
  • Add es export via "module": "es/index.js" to package.json
  • Add prettier code formating
  • [BREAKING] simplify handler event data to allow destructuring
    • onSwiped = ({ event, direction, absX, absY, velocity}) => console.log('swiped')
  • [BREAKING] deprecated onSwiping{Left|Right|Up|Down} handler props
    • can be replaced with direction/dir event data
    • onSwiping = ({ dir }) => console.log(`swiping - ${dir}`)
  • [BREAKING] deprecated props
    • flickThreshold
    • stopPropagation
    • disabled

v4.3.0

23 May 13:37
Compare
Choose a tag to compare
  • Add rotationAngle prop. #103
    • will allow to set a rotation angle, e.g. for a four-player game on a tablet, where each player has a 90° turned view.
    • Thank you @Narquadah and @LarsKumbier!

v4.2.2

23 May 02:36
Compare
Choose a tag to compare
  • fixed bug that happened when if either onSwiping or onSwiped were set we were not calling e.preventDefault() appropriately

v4.2.0

28 Oct 14:56
Compare
Choose a tag to compare
  • Add support for calling preventDefault on Chrome 56+ via passive event support checking and manual event listener setup. #88

v4.1.0

28 Jul 13:47
Compare
Choose a tag to compare
  • add disabled prop. #83
  • add innerRef prop that allows user to access to <Swipeable>'s inner dom node react ref. #82

v4.0.1

07 Jun 22:45
Compare
Choose a tag to compare
  • fixed bug where delta was causing a swipe to not be tracked correctly, #74 , thanks @mctep

v4.0.0

05 May 14:00
Compare
Choose a tag to compare
  • Major Change preventDefaultTouchmoveEvent defaults to false now #69
  • Major Change drop support for React 12 & 13, peerDependencies updated #64
    • prop-types added to dependencies #64
  • Major Change trackMouse now 'tracks' the swipe outside of the swipeable component, #67.
  • react 16 added to peerDependencies