svelte-gestures
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24262
245