📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

react-fastclick

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-fastclick - npm Package Compare versions

Comparing version

to
2.0.2

8

index.js

@@ -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",