From e31a37421214db40a631c2721381f240f03c770e Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Sat, 25 May 2024 12:51:27 +1000 Subject: [PATCH] Fix anchored panes flying into the abyss within miliseconds when you try to drag them --- source/windowing/StarPane.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/windowing/StarPane.cpp b/source/windowing/StarPane.cpp index 9e1cd4f..1511fed 100644 --- a/source/windowing/StarPane.cpp +++ b/source/windowing/StarPane.cpp @@ -223,7 +223,7 @@ void Pane::setDragActive(bool dragActive, Vec2I dragMouseOrigin) { void Pane::drag(Vec2I mousePosition) { Vec2I delta = mousePosition - m_dragMouseOrigin; - setPosition(position() + delta); + setPosition(relativePosition() + delta); m_dragMouseOrigin += delta; }