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

@hscmap/inertial-mouse

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hscmap/inertial-mouse - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

1

lib/index.d.ts

@@ -21,2 +21,3 @@ export declare class Coord {

minV: number;
timeout: number;
private anchor;

@@ -23,0 +24,0 @@ private r;

3

lib/index.js

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

this.minV = 0.5;
this.timeout = 500;
this.lastT = 0;

@@ -79,3 +80,3 @@ this.mousePressed = false;

}
var t = k * (now - this.lastT);
var t = k * Math.min(now - this.lastT, this.timeout);
while (t > 0) {

@@ -82,0 +83,0 @@ var dt = Math.max(t, 0);

{
"name": "@hscmap/inertial-mouse",
"version": "2.1.0",
"version": "2.2.0",
"main": "./lib/index.js",

@@ -5,0 +5,0 @@ "types": "./lib/index.d.ts",

@@ -21,2 +21,3 @@ export class Coord {

minV = 0.5
timeout = 500

@@ -96,3 +97,3 @@ private anchor: Coord

let t = k * (now - this.lastT)
let t = k * Math.min(now - this.lastT, this.timeout)
while (t > 0) {

@@ -99,0 +100,0 @@ const dt = Math.max(t, 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