@use-gesture/core
Advanced tools
Comparing version 10.2.5 to 10.2.6
@@ -5,3 +5,3 @@ 'use strict'; | ||
var actions_dist_useGestureCoreActions = require('../../dist/actions-3ae8a817.cjs.dev.js'); | ||
var actions_dist_useGestureCoreActions = require('../../dist/actions-4cd22033.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-a24b5b15.cjs.prod.js'); | ||
var actions_dist_useGestureCoreActions = require('../../dist/actions-f34d6320.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-e68631bd.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-5ad85d2f.esm.js'; | ||
import '../../dist/maths-b2a210f4.esm.js'; |
# @use-gesture/core | ||
## 10.2.6 | ||
### Patch Changes | ||
- 916d178c6: fix: make sure the drag gesture is ended when `touchcancel` event is triggered. | ||
## 10.2.5 | ||
@@ -4,0 +10,0 @@ |
@@ -5,3 +5,3 @@ 'use strict'; | ||
var actions_dist_useGestureCoreActions = require('./actions-3ae8a817.cjs.dev.js'); | ||
var actions_dist_useGestureCoreActions = require('./actions-4cd22033.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-a24b5b15.cjs.prod.js'); | ||
var actions_dist_useGestureCoreActions = require('./actions-f34d6320.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-e68631bd.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-5ad85d2f.esm.js'; | ||
import './maths-b2a210f4.esm.js'; | ||
@@ -3,0 +3,0 @@ |
{ | ||
"name": "@use-gesture/core", | ||
"version": "10.2.5", | ||
"version": "10.2.6", | ||
"description": "Core engine for receiving gestures", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -266,2 +266,3 @@ import { CoordinatesEngine } from './CoordinatesEngine' | ||
this.eventStore.add(this.sharedConfig.window!, device, 'end', this.pointerUp.bind(this)) | ||
this.eventStore.add(this.sharedConfig.window!, device, 'cancel', this.pointerUp.bind(this)) | ||
} | ||
@@ -268,0 +269,0 @@ } |
@@ -53,3 +53,3 @@ import { Vector2 } from '../types' | ||
function getTouchList(event: TouchEvent) { | ||
return event.type === 'touchend' ? event.changedTouches : event.targetTouches | ||
return event.type === 'touchend' || event.type === 'touchcancel' ? event.changedTouches : event.targetTouches | ||
} | ||
@@ -56,0 +56,0 @@ |
307418
8895