diff options
author | 2021-10-02 21:27:08 +0200 | |
---|---|---|
committer | 2021-10-02 21:53:43 +0200 | |
commit | 3e6b377bb29c661b36329de5f18f69cb3ee6e01a (patch) | |
tree | fecd19a71a32b492dbfc8b057fa3143416ccf494 /helpers/windowActions.js | |
parent | 49652bec567ddb75fb6041c2a34ddb37e9694f08 (diff) | |
download | my_apps-3e6b377bb29c661b36329de5f18f69cb3ee6e01a.tar.gz my_apps-3e6b377bb29c661b36329de5f18f69cb3ee6e01a.tar.bz2 my_apps-3e6b377bb29c661b36329de5f18f69cb3ee6e01a.zip |
styling refactor, player audio mode
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 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 )])) } |