@use-gesture/core
Advanced tools
Comparing version 10.2.0 to 10.2.1
# @use-gesture/core | ||
## 10.2.1 | ||
### Patch Changes | ||
- 2f0cd466b: fix: release pointerId when PointerEvent is canceled. Should fix [#376](https://github.com/pmndrs/use-gesture/issues/376). | ||
## 10.2.0 | ||
@@ -4,0 +10,0 @@ |
@@ -228,3 +228,3 @@ 'use strict'; | ||
} else if ('pointerId' in event) { | ||
if (event.type === 'pointerup') this.pointerIds.delete(event.pointerId);else this.pointerIds.add(event.pointerId); | ||
if (event.type === 'pointerup' || event.type === 'pointercancel') this.pointerIds.delete(event.pointerId);else if (event.type === 'pointerdown') this.pointerIds.add(event.pointerId); | ||
} | ||
@@ -231,0 +231,0 @@ } |
@@ -220,3 +220,3 @@ 'use strict'; | ||
} else if ('pointerId' in event) { | ||
if (event.type === 'pointerup') this.pointerIds.delete(event.pointerId);else this.pointerIds.add(event.pointerId); | ||
if (event.type === 'pointerup' || event.type === 'pointercancel') this.pointerIds.delete(event.pointerId);else if (event.type === 'pointerdown') this.pointerIds.add(event.pointerId); | ||
} | ||
@@ -223,0 +223,0 @@ } |
@@ -224,3 +224,3 @@ 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, d as toHandlerProp } from './actions-9c309a79.esm.js'; | ||
} else if ('pointerId' in event) { | ||
if (event.type === 'pointerup') this.pointerIds.delete(event.pointerId);else this.pointerIds.add(event.pointerId); | ||
if (event.type === 'pointerup' || event.type === 'pointercancel') this.pointerIds.delete(event.pointerId);else if (event.type === 'pointerdown') this.pointerIds.add(event.pointerId); | ||
} | ||
@@ -227,0 +227,0 @@ } |
{ | ||
"name": "@use-gesture/core", | ||
"version": "10.2.0", | ||
"version": "10.2.1", | ||
"description": "Core engine for receiving gestures", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -48,4 +48,4 @@ import { EngineMap } from './actions' | ||
} else if ('pointerId' in event) { | ||
if (event.type === 'pointerup') this.pointerIds.delete(event.pointerId) | ||
else this.pointerIds.add(event.pointerId) | ||
if (event.type === 'pointerup' || event.type === 'pointercancel') this.pointerIds.delete(event.pointerId) | ||
else if (event.type === 'pointerdown') this.pointerIds.add(event.pointerId) | ||
} | ||
@@ -52,0 +52,0 @@ } |
296989