New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gesture-helper

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gesture-helper

a *tiny* touch & mouse library to help make tracking touch interactions more simple.

  • 0.1.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

gesture-helper

a tiny touch & mouse library to help make tracking touch interactions more simple.

*note: This lib currently only supports horizontal movement. If/when it detects up and down movement (at gesture start), it stands down so that the browser can scroll, as per usual.

install:

yarn install gesture-helper

then:

let gestureControl = new GestureHelper(document.querySelector('.el'), {
  onPanStart: () => {},
  onPan: (e) => {},
  onPanEnd: (e) => {},
});

optional settings (with default value):

  sensitivity: Number(5), // Integer: Px's movement to allow before capturing pan event
  swipeVelocity: Float(0.7), // Float: Velocity threshold range for varied swipe detection

FAQs

Package last updated on 19 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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