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

use-double-tap

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

use-double-tap - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

2

dist/index.js

@@ -1,2 +0,2 @@

var n=require("react");exports.useDoubleTap=function(e,r,u){void 0===r&&(r=300),void 0===u&&(u={});var o=n.useRef(null);console.log("Options",u);var l=n.useCallback(function(n){o.current?(clearTimeout(o.current),o.current=null,e&&e(n)):o.current=setTimeout(function(){u.onSingleTap&&u.onSingleTap(n),o.current=null},r)},[e,r,u.onSingleTap]);return e?{onClick:l}:{}};
var e=require("react");exports.useDoubleTap=function(n,r,u){void 0===r&&(r=300),void 0===u&&(u={});var l=e.useRef(null),t=e.useCallback(function(e){l.current?(clearTimeout(l.current),l.current=null,n&&n(e)):l.current=setTimeout(function(){u.onSingleTap&&u.onSingleTap(e),l.current=null},r)},[n,r,u.onSingleTap]);return n?{onClick:t}:{}};
//# sourceMappingURL=index.js.map
{
"name": "use-double-tap",
"version": "1.2.0",
"version": "1.2.1",
"description": "React hook for handling double tap on mobile devices",

@@ -5,0 +5,0 @@ "author": "minwork",

Sorry, the diff of this file is not supported yet

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