Fix anchored panes flying into the abyss within miliseconds when you try to drag them

This commit is contained in:
Kae 2024-05-25 12:51:27 +10:00
parent db42ccae71
commit e31a374212

View File

@ -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;
}