lesca-click
Advanced tools
Comparing version 1.0.12 to 2.0.0
@@ -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 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15714
357