Socket
Socket
Sign inDemoInstall

@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.0.0 to 2.0.1

12

example/main.ts

@@ -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'),

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