Socket
Socket
Sign inDemoInstall

@use-gesture/core

Package Overview
Dependencies
0
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 10.2.0 to 10.2.1

6

CHANGELOG.md
# @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 @@

2

dist/use-gesture-core.cjs.dev.js

@@ -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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc