Skip to content

Commit 9b21248

Browse files
author
Pham Hong Duc
committed
iOS: Fix touch identity release before invoke event
1 parent 4bf63e7 commit 9b21248

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Projects/Skylicht/Engine/Control/CTouchManager.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,11 @@ namespace Skylicht
168168
}
169169
else if (m_touch[i].touchEvent == CTouchManager::TouchUp)
170170
{
171-
// identity touch
172-
m_touchIdentify.touchRelease(i, (int)m_touch[i].touchID);
173-
174171
event.MouseInput.Event = irr::EMIE_LMOUSE_LEFT_UP;
175172
device->postEventFromUser(event);
173+
174+
// identity touch
175+
m_touchIdentify.touchRelease(i, (int)m_touch[i].touchID);
176176
}
177177
}
178178

0 commit comments

Comments
 (0)