@use-gesture/core
Advanced tools
Comparing version 10.2.16 to 10.2.17
@@ -5,3 +5,3 @@ 'use strict'; | ||
var actions_dist_useGestureCoreActions = require('../../dist/actions-4f7d7429.cjs.dev.js'); | ||
var actions_dist_useGestureCoreActions = require('../../dist/actions-5741df19.cjs.dev.js'); | ||
require('../../dist/maths-125ca19a.cjs.dev.js'); | ||
@@ -8,0 +8,0 @@ |
@@ -5,3 +5,3 @@ 'use strict'; | ||
var actions_dist_useGestureCoreActions = require('../../dist/actions-de1e3912.cjs.prod.js'); | ||
var actions_dist_useGestureCoreActions = require('../../dist/actions-04d1ac17.cjs.prod.js'); | ||
require('../../dist/maths-a42ecce1.cjs.prod.js'); | ||
@@ -8,0 +8,0 @@ |
@@ -1,2 +0,2 @@ | ||
export { C as ConfigResolverMap, E as EngineMap, e as dragAction, h as hoverAction, m as moveAction, f as pinchAction, r as registerAction, s as scrollAction, w as wheelAction } from '../../dist/actions-1416bf77.esm.js'; | ||
export { C as ConfigResolverMap, E as EngineMap, e as dragAction, h as hoverAction, m as moveAction, f as pinchAction, r as registerAction, s as scrollAction, w as wheelAction } from '../../dist/actions-65020aef.esm.js'; | ||
import '../../dist/maths-b2a210f4.esm.js'; |
# @use-gesture/core | ||
## 10.2.17 | ||
### Patch Changes | ||
- 48dc6a102: feat: add option to remove arrow keys listeners for the drag gesture. | ||
- d73ee4e34: Always trigger wheel events on pinch | ||
## 10.2.16 | ||
@@ -4,0 +11,0 @@ |
@@ -17,2 +17,3 @@ import { PointerType } from '../types'; | ||
}): boolean; | ||
keys(value?: boolean): boolean; | ||
threshold(this: InternalDragOptions, value: number | Vector2, _k: string, { filterTaps, tapsThreshold, axis }: { | ||
@@ -19,0 +20,0 @@ filterTaps?: boolean | undefined; |
@@ -165,2 +165,7 @@ import { State } from './state'; | ||
/** | ||
* If false, will disable KeyboardEvents that would otherwise trigger the | ||
* drag gesture when the element is focused. Defaults to true. | ||
*/ | ||
keys?: boolean; | ||
/** | ||
* Doesn't use setPointerCapture when false and delegate drag handling to | ||
@@ -167,0 +172,0 @@ * window |
@@ -36,2 +36,3 @@ import { GestureKey, CoordinatesKey, ModifierKey } from './config'; | ||
pointerLock: boolean; | ||
keys: boolean; | ||
device: 'pointer' | 'touch' | 'mouse'; | ||
@@ -38,0 +39,0 @@ swipe: { |
@@ -5,3 +5,3 @@ 'use strict'; | ||
var actions_dist_useGestureCoreActions = require('./actions-4f7d7429.cjs.dev.js'); | ||
var actions_dist_useGestureCoreActions = require('./actions-5741df19.cjs.dev.js'); | ||
require('./maths-125ca19a.cjs.dev.js'); | ||
@@ -8,0 +8,0 @@ |
@@ -5,3 +5,3 @@ 'use strict'; | ||
var actions_dist_useGestureCoreActions = require('./actions-de1e3912.cjs.prod.js'); | ||
var actions_dist_useGestureCoreActions = require('./actions-04d1ac17.cjs.prod.js'); | ||
require('./maths-a42ecce1.cjs.prod.js'); | ||
@@ -8,0 +8,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { S as SUPPORT, C as ConfigResolverMap, _ as _objectSpread2, a as _defineProperty, t as toDomEventType, i as isTouch, b as touchIds, E as EngineMap, c as chain, p as parseProp, d as toHandlerProp } from './actions-1416bf77.esm.js'; | ||
import { S as SUPPORT, C as ConfigResolverMap, _ as _objectSpread2, a as _defineProperty, t as toDomEventType, i as isTouch, b as touchIds, E as EngineMap, c as chain, p as parseProp, d as toHandlerProp } from './actions-65020aef.esm.js'; | ||
import './maths-b2a210f4.esm.js'; | ||
@@ -3,0 +3,0 @@ |
{ | ||
"name": "@use-gesture/core", | ||
"version": "10.2.16", | ||
"version": "10.2.17", | ||
"description": "Core engine for receiving gestures", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -44,2 +44,5 @@ import { PointerType } from '../types' | ||
}, | ||
keys(value = true) { | ||
return value | ||
}, | ||
threshold( | ||
@@ -46,0 +49,0 @@ this: InternalDragOptions, |
@@ -370,5 +370,6 @@ import { CoordinatesEngine } from './CoordinatesEngine' | ||
bindFunction('key', 'down', this.keyDown.bind(this)) | ||
bindFunction('key', 'up', this.keyUp.bind(this)) | ||
if (this.config.keys) { | ||
bindFunction('key', 'down', this.keyDown.bind(this)) | ||
bindFunction('key', 'up', this.keyUp.bind(this)) | ||
} | ||
if (this.config.filterTaps) { | ||
@@ -375,0 +376,0 @@ bindFunction('click', '', this.pointerClick.bind(this), { capture: true, passive: false }) |
@@ -292,8 +292,7 @@ import { Engine } from './Engine' | ||
bindFunction(device, 'cancel', this[device + 'End'].bind(this)) | ||
} else { | ||
// we try to set a passive listener, knowing that in any case React will | ||
// ignore it. | ||
bindFunction('wheel', '', this.wheel.bind(this), { passive: false }) | ||
} | ||
// we try to set a passive listener, knowing that in any case React will | ||
// ignore it. | ||
bindFunction('wheel', '', this.wheel.bind(this), { passive: false }) | ||
} | ||
} |
@@ -172,2 +172,7 @@ import { State } from './state' | ||
/** | ||
* If false, will disable KeyboardEvents that would otherwise trigger the | ||
* drag gesture when the element is focused. Defaults to true. | ||
*/ | ||
keys?: boolean | ||
/** | ||
* Doesn't use setPointerCapture when false and delegate drag handling to | ||
@@ -174,0 +179,0 @@ * window |
@@ -40,2 +40,3 @@ import { GestureKey, CoordinatesKey, ModifierKey } from './config' | ||
pointerLock: boolean | ||
keys: boolean | ||
device: 'pointer' | 'touch' | 'mouse' | ||
@@ -42,0 +43,0 @@ swipe: { |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
341073
9668
44