@hscmap/magic-trackpad-detector
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -5,3 +5,3 @@ "use strict"; | ||
function MagicTrackpadDetector() { | ||
this.minN1 = 5; | ||
this.minN1 = 7; | ||
this.minN2 = 15; | ||
@@ -24,4 +24,5 @@ this.history = new RingBuffer(Math.max(this.minN1, this.minN2)); | ||
} | ||
if (h.at(-1)[1] == h.at(-this.minN1 + 1)[1]) | ||
if (h.at(-1)[1] == h.at(-(this.minN1 - 1))[1]) { | ||
return false; | ||
} | ||
} | ||
@@ -32,3 +33,2 @@ else { | ||
var _a = h.at(-this.minN2), to = _a[0], vo = _a[1]; | ||
to; | ||
if (Math.abs(vo) <= 1) { | ||
@@ -35,0 +35,0 @@ return false; |
{ | ||
"name": "@hscmap/magic-trackpad-detector", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"main": "./lib/index.js", | ||
@@ -5,0 +5,0 @@ "types": "./lib/index.d.ts", |
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
284017