PackageTrack

npm · #4365

@use-gesture/react

10.3.1pmndrs/use-gesture

React target for @use-gesture

Release timeline

67 releases since 2021
20222023202420252026

Releases

  1. 10.3.121 Mar 2024
    Release notes2 sources agree

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    • 6f6f4a5b4: fix(types): compatibility with @types/react >=18.2.66
    Open source →
  2. 10.3.016 Sept 2023
    Release notes2 sources agree

    Patch Changes

    • Updated dependencies [c19ff0b24]
    • Updated dependencies [1ee9f42e3]
    Open source →
    Additional notes

    Minor Changes

    • 1ee9f42e3: Fix: touch support is reverted to only checking TouchEvent support #626

    Patch Changes

    • c19ff0b24: feat: modifierKey can be an array via @BJvdA
    Open source →
  3. 10.2.2721 May 2023
    Release notes2 sources agree

    Patch Changes

    • Updated dependencies [0dce2216c]
    • Updated dependencies [957aee8b5]
    • Updated dependencies [51c6cfcf4]
    Open source →
    Additional notes

    Patch Changes

    • 0dce2216c: detect lost pointer capture in PinchEngine
    • 957aee8b5: fix: don't block events with similar timestamps #581
    • 51c6cfcf4: chore: upgrade to typescript 5.0
    Open source →
  4. 10.2.267 Apr 2023
    Release notes2 sources agree

    Patch Changes

    • Updated dependencies [db0d934eb]
    • Updated dependencies [43e751a51]
    Open source →
    Additional notes

    Patch Changes

    • db0d934eb: fix: add a try catch when calculating the distance and angle as apparently some events might be undefined on Windows #551
    • 43e751a51: fix: calculate swipe from raw movement (_movement) #592
    Open source →
  5. 10.2.2527 Mar 2023
    Release notes2 sources agree

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    • 3701753ea: fix: set startTime inside start function
    Open source →
  6. 10.2.2428 Jan 2023
    Release notes

    Patch Changes

    • 60aae2149: feat: Added option to configure keyboard displacement in the drag gesture
    Open source →
    Additional notes2 sources agree

    Patch Changes

    Open source →
  7. 10.2.239 Dec 2022
    Release notes2 sources agree

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    • 79684a05f: types: add package exports
    Open source →
  8. 10.2.223 Nov 2022
    Release notes2 sources agree

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    • c6215e8ad: fix: properly resolve pointer.keys config
    Open source →
  9. 10.2.2130 Oct 2022
    Release notes2 sources agree

    Patch Changes

    • Updated dependencies [6f4c09b55]
    • Updated dependencies [854f4dfc1]
    Open source →
    Additional notes

    Patch Changes

    • 6f4c09b55: fix: rolls back wheel-based pinch movement to bounds (thanks @Andarist!)

    • 854f4dfc1: feat (pinch):

      • pinchOnwheel: false prevents pinching with wheel.
    Open source →
  10. 10.2.2015 Sept 2022
    Release notes2 sources agree

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    • de807fddc: fix: applying a new config to useGesture / Gesture shouldn't throw an error.
    Open source →
  11. 10.2.1930 Aug 2022
    Release notes2 sources agree

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    • c7cb407bd: ts: Typescript 4.8 introduced a new mapping definition for NonNullable which breaks the package types.

      // Native NonNullable Utility Type
      
      // definition on 4.7 and lower
      type NonNullable<T> = T extends null | undefined ? never : T
      
      // definition from 4.8
      type NonNullable<T> = T & {}
      

      This fix reverts the definition of NonNullable so that it works. More information here: https://github.com/pmndrs/use-gesture/issues/501#issuecomment-1229486104

    Open source →
  12. 10.2.1810 Aug 2022
    Release notes2 sources agree

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    • 115ee1f59: fix: don't let Enter key preventDefault on onClick when filterTaps is true.
    Open source →
  13. 10.2.1716 Jul 2022
    Release notes2 sources agree

    Patch Changes

    • Updated dependencies [48dc6a102]
    • Updated dependencies [d73ee4e34]
    Open source →
    Additional notes

    Patch Changes

    • 48dc6a102: feat: add option to remove arrow keys listeners for the drag gesture.
    • d73ee4e34: Always trigger wheel events on pinch
    Open source →
  14. 10.2.1623 Jun 2022
    Release notes

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    • a521a171f: types: remove React types dependency on core package
    • Updated dependencies [a521a171f]
    Open source →
    Additional notes

    Patch Changes

    • a521a171f: types: remove React types dependency on core package
    Open source →
  15. 10.2.1523 May 2022
    Release notes2 sources agree

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    • be1703a6d: fix: reset _preventScroll when setting up scroll prevention to avoid side effects
    Open source →
  16. 10.2.1416 May 2022
    Release notes2 sources agree

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    • e82f1c220: fix: improve detection for drag gesture, also fixes #494
    Open source →
  17. 10.2.1314 May 2022
    Release notes

    Patch Changes

    • 15724eb5c: - Add setConfig(config) setter for gestures
      • Add createGesture to exports
    • Updated dependencies [6896094b3]
    • Updated dependencies [15724eb5c]
    Open source →
    Additional notes

    Patch Changes

    • Updated dependencies [6896094b3]
    • Updated dependencies [15724eb5c]
    Open source →
    Additional notes

    Patch Changes

    • 6896094b3: fix: preventScroll should resist to multiple fingers drag
    • 15724eb5c: - Have delta increment on first keydown for drag
      • Fix config.bounds type for drag gestures
      • Add eventOptions option for each gesture
    Open source →
  18. 10.2.1228 Apr 2022
    Release notes2 sources agree

    Patch Changes

    • 91651b202: Fix config types
    • Updated dependencies [91651b202]
    Open source →
    Additional notes

    Patch Changes

    • 91651b202: Fix config types
    Open source →
  19. 10.2.1131 Mar 2022
    Release notes2 sources agree

    Patch Changes

    • Updated dependencies [670e6e2db]
    • Updated dependencies [5979b1add]
    Open source →
    Additional notes

    Patch Changes

    • 670e6e2db: - fix: trigger pointerDown event when triggerAllEvents and delay options are set
      • fix: disable scroll prevention when the event type is 'mouse'
      • feat: add axisThreshold property to set a threshold for axis calculation (can be set per device for the drag gesture)
      • fix: axis are now calculated on pixel movement rather than on transformed movement
    • 5979b1add: feat: add modifierKey for wheel option. Defaults to 'ctrlKey'.
    Open source →
  20. 10.2.1014 Mar 2022
    Release notes2 sources agree

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    • f593dbe09: - fix: increase PINCH_WHEEL_RATIO to 100 to slow down zoom on wheel-based devices.
      • fix: force drag to start no matter the threshold when delay is reached.
      • fix: improve preventScroll.
    Open source →
  21. 10.2.97 Mar 2022
    Release notes2 sources agree

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    • d86df73b9: feat: add pointer.mouse option to force mouse listeners instead of pointers when possible.
    Open source →
  22. 10.2.85 Mar 2022
    Release notes2 sources agree

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    • 2c0fde118: fix: delta is now derived from the offset value after it is clamped by bounds.
    Open source →
  23. 10.2.71 Mar 2022
    Release notes2 sources agree

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    • 2d943428c: Fix a bug when a touch identifier is equal to 0
    Open source →
  24. 10.2.611 Feb 2022
    Release notes2 sources agree

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    • 916d178c6: fix: make sure the drag gesture is ended when touchcancel event is triggered.
    Open source →
  25. 10.2.53 Feb 2022
    Release notes2 sources agree

    Patch Changes

    • Updated dependencies [cd5533a4c]
    • Updated dependencies [548a90985]
    • Updated dependencies [c5067dce0]
    • Updated dependencies [4eaabaf1a]
    Open source →
    Additional notes

    Patch Changes

    • cd5533a4c: fix: change TouchEvent detection
    • 548a90985: [Drag] feat: Adding a custom threshold to taps when filtering them (tapThreshold)
    • c5067dce0: feat: add overflow state attribute telling when offset is overflowing bounds. [Wheel] fix: only update offset when it stays within bounds.
    • 4eaabaf1a: fix: add lostpointercapture listener for cases when the pointerup event is missed.
    Open source →
  26. 10.2.412 Dec 2021
    Release notes2 sources agree

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    • ae631004a: fix: change isNaN to Number.isNaN in dev mode
    Open source →
  27. 10.2.311 Dec 2021
    Release notes2 sources agree

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    • 8302c5bfd: fix: prevent deprecated resolvers from applying in dev mode
    Open source →
  28. 10.2.26 Dec 2021
    Release notes2 sources agree

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    • cffaba5ae: fix: logic error in intent detection
    Open source →
  29. 10.2.16 Dec 2021
    Release notes2 sources agree

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    • 2f0cd466b: fix: release pointerId when PointerEvent is canceled. Should fix #376.
    Open source →
  30. 10.2.01 Dec 2021
    Release notes2 sources agree

    Patch Changes

    Open source →
    Additional notes

    Minor Changes

    • b4e6181e7: Fix: should fix transform function doesn't have [0,0] origin. This required some pretty drastic internal changes hence the minor version bump.
    Open source →
  31. 10.1.621 Nov 2021
    Release notes2 sources agree

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    • 9883b1c78: types: fix ReactDOMAttributes type
    Open source →
  32. 10.1.515 Nov 2021
    Release notes2 sources agree

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    • 55505c071: fix: event.buttons condition was preventing pointer.touch from behaving properly.
    Open source →
  33. 10.1.48 Nov 2021
    Release notes2 sources agree

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    • 090ba6b62: feat: allow pointer.buttons to accept an array or -1
    Open source →
  34. 10.1.34 Nov 2021
    Release notes2 sources agree

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    • a9f99ce3c: feat: warn in dev mode if transform function return invalid values
    Open source →
  35. 10.1.23 Nov 2021
    Release notes2 sources agree

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    • ed0073543: fix: add threshold to config resolver
    Open source →
  36. 10.1.118 Oct 2021
    Release notes2 sources agree

    Patch Changes

    • Updated dependencies [8a0bfacb0]
    • Updated dependencies [8a0bfacb0]
    Open source →
    Additional notes

    Patch Changes

    • 8a0bfacb0: fix: Remove the console output statement.
    • 8a0bfacb0: fix: Remove the console output statement.
    Open source →
  37. 10.1.013 Oct 2021
    Release notes2 sources agree

    Patch Changes

    Open source →
    Additional notes

    Minor Changes

    • b67543ff7: Feat (drag): add the pointer.buttons in order to customize which buttons combination will trigger the drag gesture.
    Open source →
  38. 10.0.36 Oct 2021

    Nothing published for this version

  39. 10.0.230 Sept 2021
    Release notes2 sources agree

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    • a219d3f69: fix: make sure delay still set first to true when moving so that onDragStart can fire.
    Open source →
  40. 10.0.127 Sept 2021
    Release notes2 sources agree

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    • c00c7b1: fix: add movement to offset when using wheel-based browsers on pinch
    Open source →
  41. 10.0.022 Sept 2021

    Nothing published for this version

  42. 10.0.0-beta.2615 Sept 2021pre-release

    Nothing published for this version

  43. 10.0.0-beta.2513 Sept 2021pre-release

    Nothing published for this version

  44. 10.0.0-beta.248 Sept 2021pre-release

    Nothing published for this version

  45. 10.0.0-beta.232 Sept 2021pre-release

    Nothing published for this version

  46. 10.0.0-beta.2227 Jul 2021pre-release

    Nothing published for this version

  47. 10.0.0-beta.219 Jul 2021pre-release

    Nothing published for this version

  48. 10.0.0-beta.208 Jul 2021pre-release

    Nothing published for this version

  49. 10.0.0-beta.196 Jul 2021pre-release

    Nothing published for this version

  50. 10.0.0-beta.186 Jul 2021pre-release

    Nothing published for this version

  51. 10.0.0-beta.174 Jul 2021pre-release

    Nothing published for this version

  52. 10.0.0-beta.1629 Jun 2021pre-release

    Nothing published for this version

  53. 10.0.0-beta.1527 Jun 2021pre-release

    Nothing published for this version

  54. 10.0.0-beta.1426 Jun 2021pre-release

    Nothing published for this version

  55. 10.0.0-beta.1319 Jun 2021pre-release

    Nothing published for this version

  56. 10.0.0-beta.1217 Jun 2021pre-release

    Nothing published for this version

  57. 10.0.0-beta.116 Jun 2021pre-release

    Nothing published for this version

  58. 10.0.0-beta.104 Jun 2021pre-release

    Nothing published for this version

  59. 10.0.0-beta.927 May 2021pre-release

    Nothing published for this version

  60. 10.0.0-beta.822 May 2021pre-release

    Nothing published for this version