From 3e6b377bb29c661b36329de5f18f69cb3ee6e01a Mon Sep 17 00:00:00 2001 From: piotrruss Date: Sat, 2 Oct 2021 21:27:08 +0200 Subject: styling refactor, player audio mode --- 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 7cc09be..be60986 100644 --- a/helpers/windowActions.js +++ b/helpers/windowActions.js @@ -53,10 +53,10 @@ export const move = (app, winRef, setApps) => { function moveAt (pageX, pageY) { const x = pageX - shiftX - const y = pageY - shiftY - 32 + const y = pageY - shiftY setApps(apps => ([...apps.map(a => a && a.name === app.name - ? { ...a, pos: [x + 'px', y < 0 ? 0 : y + 'px'] } + ? { ...a, pos: [x + 'px', y < '32' ? '32px' : y + 'px'] } : a )])) } -- cgit v1.2.3