Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

svelte-gestures

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-gestures - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

package.json

@@ -5,3 +5,3 @@ {

"repository": "https://github.com/Rezi/svelte-gestures",
"version": "1.0.2",
"version": "1.0.3",
"main": "dist/index.umd.min.js",

@@ -8,0 +8,0 @@ "module": "dist/index.es.js",

@@ -151,5 +151,4 @@ # svelte-gestures

here are all the arguments of `setPointerControls`:
```typescript
function setPointerControls(
gestureName: string,

@@ -160,4 +159,7 @@ node: HTMLElement,

onUpCallback: (activeEvents: PointerEvent[], event: PointerEvent) => void
);
```
You can pass `null` instead of a callback if you dont need to call it in that event. In double tap example below you actually do not need any events related to move, as they are irrelevant for tapping.
See how doubletap custome gesture is implemented:

@@ -164,0 +166,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc