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.3.8 to 1.4.0

4

CHANGELOG.md
# Changelog
## 1.3.9
Press gesture now accepts `triggerBeforeFinished` option. By default it is set `false`. If set to true, press event is triggered after given `timeframe`, even if user still keeps pressing.
## 1.3.8

@@ -4,0 +8,0 @@

2

package.json

@@ -6,3 +6,3 @@ {

"license": "MIT",
"version": "1.3.8",
"version": "1.4.0",
"main": "dist/index.js",

@@ -9,0 +9,0 @@ "module": "dist/index.esm.js",

@@ -194,2 +194,4 @@ # svelte-gestures

Another option is `triggerBeforeFinished`. By default it is set to `false`. If set to true, press event is triggered after given `timeframe`, even if user still keeps pressing (event hasn't finished).
[> repl Press demo](https://svelte.dev/repl/8bef691ad59f4b2285d2b8a6df5d178a?version=3.38.2)

@@ -211,3 +213,3 @@

<div use:press={{ timeframe: 300 }} on:press={handler} style="width:500px;height:500px;border:1px solid black;">
<div use:press={{ timeframe: 300, triggerBeforeFinished: false }} on:press={handler} style="width:500px;height:500px;border:1px solid black;">
press: {x} {y}

@@ -214,0 +216,0 @@ </div>

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