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

use-long-press

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

use-long-press

React hook for detecting click, tap or point and hold event. Easy to use, highly customizable options, thoroughly tested.

  • 3.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
28K
decreased by-14.89%
Maintainers
1
Weekly downloads
 
Created
Source

React Long Press Hook

codecov npm type definitions npm bundle size npm

Logo horizontal

React hook for detecting click / tap / point and hold event

Main features

  • Mouse, Touch and Pointer events support
  • Pass custom context and access it in callback
  • Cancel long press if moved too far from the target
  • Flexible callbacks: onStart, onMove, onFinish, onCancel
  • Disable hook when necessary
  • Filter undesired events (like mouse right clicks)

Documentation

Full documentation can be found here

Support

If you like my work, consider making a donation through Github Sponsors.

License

MIT © minwork

Keywords

FAQs

Package last updated on 15 Aug 2023

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