MCPcopy Create free account
hub / github.com/ChinaGodMan/UserScripts / onMouseMove

Function onMouseMove

greasyfork-link/greasyfork-link.user.js:339–344  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

337 }
338
339 function onMouseMove(event) {
340 const deltaX = event.clientX - initialX
341 const deltaY = event.clientY - initialY
342 dialogBox.style.left = dialogInitialX + deltaX + 'px'
343 dialogBox.style.top = dialogInitialY + deltaY + 'px'
344 }
345
346 function onTouchMove(event) {
347 const deltaX = event.touches[0].clientX - initialX

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected