From a9d3686ccc496044cfdee013ccfbece955793052 Mon Sep 17 00:00:00 2001 From: piotrruss Date: Sat, 21 Aug 2021 00:24:01 +0200 Subject: icon focus, notes update timestamp, loading note --- helpers/windowActions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'helpers/windowActions.js') 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) -- cgit v1.2.3