1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-02-12 05:58:30 +03:00

animate dragging applets only on ViewParallelAxis

This commit is contained in:
Michail Vourlakos 2019-05-22 20:59:55 +03:00
parent 2aff2da949
commit 4dd93f3ba8

View File

@ -183,11 +183,20 @@ Item {
movingForResize = false;
return;
}
translation.x = oldX - x
translation.y = oldY - y
translAnim.running = true
oldX = x
oldY = y
if (!root.isVertical) {
translation.x = oldX - x;
} else {
translation.y = oldY - y;
}
translAnim.running = true;
if (!root.isVertical) {
oldX = x;
} else {
oldY = y;
}
}
transform: Translate {