Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,15 +390,16 @@ 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
touch->m_startPoint = pos;
}

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());
Expand Down
Loading