diff options
Diffstat (limited to 'helpers/windowActions.js')
-rw-r--r-- | helpers/windowActions.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helpers/windowActions.js b/helpers/windowActions.js index fda0f73..60e697c 100644 --- a/helpers/windowActions.js +++ b/helpers/windowActions.js @@ -21,7 +21,7 @@ export const move = (appName, winRef, apps, setApps) => { const shiftY = event.clientY - winRef.current.getBoundingClientRect().top winRef.current.classList.add('moving') - function moveAt(pageX, pageY, clientY) { + function moveAt(pageX, pageY) { const x = pageX - shiftX const y = pageY - shiftY - 32 setApps([...apps.map(a => a.name === appName @@ -31,7 +31,7 @@ export const move = (appName, winRef, apps, setApps) => { } const onMouseMove = (event) => { - moveAt(event.pageX, event.pageY, event.clientY) + moveAt(event.pageX, event.pageY) } document.addEventListener('mousemove', onMouseMove) |