NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm
npm, #4365 most downloaded on npm
React target for @use-gesture
Latest stable
10.3.1
Last release 3 years ago
no release in 18 months
Release timing varies
gaps range from 1 weeks to 6 months
Nearly every release is documented
notes for 41 of 41 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
67 releases · first in 2021
Drag across the ruler to compare, or tap a release to open it.
Updated dependencies [6f6f4a5b4]
Updated dependencies [c19ff0b24]
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Updated dependencies [0dce2216c]
Updated dependencies [db0d934eb]
Updated dependencies [3701753ea]
60aae2149: feat: Added option to configure keyboard displacement in the drag gesture
Updated dependencies [79684a05f]
Updated dependencies [c6215e8ad]
Updated dependencies [6f4c09b55]
6f4c09b55: fix: rolls back wheel-based pinch movement to bounds (thanks @Andarist!)
854f4dfc1: feat (pinch):
pinchOnwheel: false prevents pinching with wheel.Updated dependencies [de807fddc]
Updated dependencies [c7cb407bd]
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
Updated dependencies [115ee1f59]
Updated dependencies [48dc6a102]
Updated dependencies [a521a171f]
Updated dependencies [be1703a6d]
Updated dependencies [e82f1c220]
15724eb5c: - Add setConfig(config) setter for gestures
setConfig(config) setter for gestures
createGesture to exportsdelta increment on first keydown for drag
config.bounds type for drag gestureseventOptions option for each gestureUpdated dependencies [91651b202]
Updated dependencies [670e6e2db]
pointerDown event when triggerAllEvents and delay options are set
'mouse'axisThreshold property to set a threshold for axis calculation (can be set per device for the drag gesture)'ctrlKey'.Updated dependencies [f593dbe09]
PINCH_WHEEL_RATIO to 100 to slow down zoom on wheel-based devices.
preventScroll.Updated dependencies [d86df73b9]
pointer.mouse option to force mouse listeners instead of pointers when possible.Updated dependencies [2c0fde118]
offset value after it is clamped by bounds.Updated dependencies [2d943428c]
0Updated dependencies [916d178c6]
touchcancel event is triggered.Updated dependencies [cd5533a4c]
tapThreshold)overflow state attribute telling when offset is overflowing bounds.
[Wheel] fix: only update offset when it stays within bounds.lostpointercapture listener for cases when the pointerup event is missed.Updated dependencies [ae631004a]
Updated dependencies [8302c5bfd]
Updated dependencies [cffaba5ae]
Updated dependencies [2f0cd466b]
Updated dependencies [b4e6181e7]
transform function doesn't have [0,0] origin. This required some pretty drastic internal changes hence the minor version bump.Updated dependencies [9883b1c78]
Updated dependencies [55505c071]
event.buttons condition was preventing pointer.touch from behaving properly.Updated dependencies [090ba6b62]
Updated dependencies [a9f99ce3c]
Updated dependencies [ed0073543]
Updated dependencies [8a0bfacb0]
Updated dependencies [b67543ff7]
pointer.buttons in order to customize which buttons combination will trigger the drag gesture.Updated dependencies [de01d7dbb]
Updated dependencies [a219d3f69]
### Patch Changes - Updated dependencies [c00c7b1] - @use-gesture/core@10.0.1
e5d1cac: ## General breaking changes
e5d1cac: ## General breaking changes
config.domTarget is renamed config.targetconfig.initial is renamed config.fromconfig.from accounts for offset and not for movement as it was the case for config.initialconfig.bounds accounts for offsetvelocity is now a Vector with absolute (use direction if you need relative velocity)vxvy, previous, vdva are gonedistance is now a Vector with cumulative deltasstate.pressed is an alias to state.downconfig.transform only transforms movement and offset. Raw values are no longer transformed.preventDefault option so that all events are prevented when truetouch-action is not properly set in development modebounds accepts an HTMLElement or a React Refconfig.experimental_preventWindowScrollY is now config.preventScrolluseDrag(handler, {
pointer: {
touch: true, // uses touch on mobile
capture: false, // don't use setPointerCapture (uses window)
lock: true // will perform a pointer lock when drag starts, and exit pointer lock when drag ends,
},
axis: undefined | 'x' | 'y' | 'lock',
swipe: {
distance: 50,
velocity: 0.5,
duration: 250
}
})
distanceBounds is now scaleBoundsstate.movement and state.offset now reflect scale and not distanceuseTouch option to use touch events if neededconfig.axis can be set to 'lock', which will either scale or rotate.usePinch(({ offset: [scale, angle] }) => {
api.start({ rotate: angle, scale })
})
mouseOnly that you can set to false to trigger events on non-mouse events.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.