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

lesca-click

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lesca-click - npm Package Compare versions

Comparing version 1.0.12 to 2.0.0

3

lib/click.js

@@ -22,2 +22,3 @@ "use strict";

this.is_press = false;
if (this.detect() === 'desktop') this.deviation = 0;

@@ -68,3 +69,3 @@ this.down = function (e) {

this.up = function (e) {
if (Math.abs(_this.px - _this.mx) < _this.deviation && Math.abs(_this.py - _this.my) < _this.deviation) {
if (Math.abs(_this.px - _this.mx) <= _this.deviation && Math.abs(_this.py - _this.my) <= _this.deviation) {
_this.get(e);

@@ -71,0 +72,0 @@ }

{
"name": "lesca-click",
"version": "1.0.12",
"version": "2.0.0",
"description": "replace click / touch start on SPY page",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -14,2 +14,4 @@ module.exports = {

if (this.detect() === 'desktop') this.deviation = 0;
this.down = (e) => {

@@ -43,2 +45,3 @@ let n = e.target.localName;

this.py = e.clientY || e.targetTouches[0].clientY;
this.dx = this.px - this.mx;

@@ -54,3 +57,3 @@ this.dy = this.py - this.my;

this.up = (e) => {
if (Math.abs(this.px - this.mx) < this.deviation && Math.abs(this.py - this.my) < this.deviation) {
if (Math.abs(this.px - this.mx) <= this.deviation && Math.abs(this.py - this.my) <= this.deviation) {
this.get(e);

@@ -57,0 +60,0 @@ }

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