@hscmap/inertial-mouse
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -21,2 +21,3 @@ export declare class Coord { | ||
minV: number; | ||
timeout: number; | ||
private anchor; | ||
@@ -23,0 +24,0 @@ private r; |
@@ -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) |
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
18653
413