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

@hscmap/magic-trackpad-detector

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hscmap/magic-trackpad-detector - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

6

lib/index.js

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

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