react-fastclick
Advanced tools
Comparing version
@@ -158,6 +158,6 @@ 'use strict'; | ||
if (touchEvents.lastPos.clientX - touchEvents.lastPos.radiusX <= box.right && | ||
touchEvents.lastPos.clientX + touchEvents.lastPos.radiusX >= box.left && | ||
touchEvents.lastPos.clientY - touchEvents.lastPos.radiusY <= box.bottom && | ||
touchEvents.lastPos.clientY + touchEvents.lastPos.radiusY >= box.top) { | ||
if (touchEvents.lastPos.clientX - (touchEvents.lastPos.radiusX || 0) <= box.right && | ||
touchEvents.lastPos.clientX + (touchEvents.lastPos.radiusX || 0) >= box.left && | ||
touchEvents.lastPos.clientY - (touchEvents.lastPos.radiusY || 0) <= box.bottom && | ||
touchEvents.lastPos.clientY + (touchEvents.lastPos.radiusY || 0) >= box.top) { | ||
@@ -164,0 +164,0 @@ if (typeof onClick === 'function') { |
{ | ||
"name": "react-fastclick", | ||
"version": "2.0.0", | ||
"version": "2.0.2", | ||
"description": "Fast Touch Events for React", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
11599
0.24%0
-100%0
-100%