diff options
author | 2021-08-21 00:24:01 +0200 | |
---|---|---|
committer | 2021-08-21 00:24:01 +0200 | |
commit | a9d3686ccc496044cfdee013ccfbece955793052 (patch) | |
tree | 52b7772720ff89b1b6f20070a771776f0b3e9367 /helpers/windowActions.js | |
parent | 9f3c030a33edcf57eb832c500253044d107f6e25 (diff) | |
download | my_apps-a9d3686ccc496044cfdee013ccfbece955793052.tar.gz my_apps-a9d3686ccc496044cfdee013ccfbece955793052.tar.bz2 my_apps-a9d3686ccc496044cfdee013ccfbece955793052.zip |
icon focus, notes update timestamp, loading note
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) |