GarageGames / Torque2D

MIT Licensed Open Source version of Torque 2D game engine from GarageGames

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Finger touch in android not work correct when gui in other gui container

kynora opened this issue · comments

I have a guiScrollCtrl to hold the list of other control such as radio button. Touch on the scroll bar or list item work correct for fist touch, but for next touch sometime get the last touch position (Multi touch), Sometime I can scroll out side the scroll bar.

Some investigation seem GuiCanvas::rootMouseDown not work correct or multi-touch not well define.

This bug is in processScreenTouchEvent function.
I change rootScreenTouchDown to rootMouseDown, and rootScreenTouchUp to rootMouseUp then the touch work well. This should regression with someone's bug.

Fix on pull request #414 .