From ed024b0be9445bf5a2e6e8b53856fb0b839257c2 Mon Sep 17 00:00:00 2001 From: Ashton <38200084+Alphalaneous@users.noreply.github.com> Date: Sat, 15 Aug 2026 11:09:24 -0400 Subject: [PATCH] Whoops --- src/backend.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/backend.cpp b/src/backend.cpp index f8030f0..30cd68e 100644 --- a/src/backend.cpp +++ b/src/backend.cpp @@ -390,8 +390,7 @@ class $modify(CCTouchDispatcher) { auto y = (1.f - relativePos.y / gdRect.GetHeight()) * win.y; auto pos = toCocos(ImVec2(x, y)); - // setTouchInfo messes up the previous location (causes issues like texturer loader's draggable nodes breaking) - touch->m_point = pos; + if (type == CCTOUCHBEGAN && shouldPassEventsToGDButTransformed()) { touchFromGD() = true; // makes the start location in the touch correct @@ -399,6 +398,8 @@ class $modify(CCTouchDispatcher) { } if (touchFromGD()) { + // setTouchInfo messes up the previous location (causes issues like texturer loader's draggable nodes breaking) + touch->m_point = pos; CCTouchDispatcher::touches(touches, event, type); ImGui::SetWindowFocus(getTitle().c_str());