@hscmap/inertial-mouse
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -13,4 +13,2 @@ import { InertialMouse, Coord } from "../src" | ||
cursor.style.top = `${r.y}px` | ||
dxText.value = `${r.x}` | ||
dyText.value = `${r.y}` | ||
} | ||
@@ -23,4 +21,10 @@ | ||
}, | ||
up: () => cursor.classList.remove('pressed'), | ||
move: (e) => setCursorPosition(e.r), | ||
up: () => { | ||
cursor.classList.remove('pressed') | ||
}, | ||
move: (e) => { | ||
setCursorPosition(e.r) | ||
dxText.value = `${e.d.x}` | ||
dyText.value = `${e.d.y}` | ||
}, | ||
movestart: () => cursor.classList.add('moving'), | ||
@@ -27,0 +31,0 @@ moveend: () => cursor.classList.remove('moving'), |
{ | ||
"name": "@hscmap/inertial-mouse", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"main": "./lib/index.js", | ||
@@ -5,0 +5,0 @@ "types": "./lib/index.d.ts", |
@@ -27,4 +27,2 @@ # Inertial Mouse | ||
cursor.style.top = `${r.y}px` | ||
dxText.value = `${r.x}` | ||
dyText.value = `${r.y}` | ||
} | ||
@@ -37,4 +35,10 @@ | ||
}, | ||
up: () => cursor.classList.remove('pressed'), | ||
move: (e) => setCursorPosition(e.r), | ||
up: () => { | ||
cursor.classList.remove('pressed') | ||
}, | ||
move: (e) => { | ||
setCursorPosition(e.r) | ||
dxText.value = `${e.d.x}` | ||
dyText.value = `${e.d.y}` | ||
}, | ||
movestart: () => cursor.classList.add('moving'), | ||
@@ -41,0 +45,0 @@ moveend: () => cursor.classList.remove('moving'), |
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
18500
407
59