aboutsummaryrefslogtreecommitdiffstats
path: root/helpers/windowActions.js
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/windowActions.js')
-rw-r--r--helpers/windowActions.js4
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
)]))
}