GarageGames / Torque2D

MIT Licensed Open Source version of Torque 2D game engine from GarageGames
MIT License
1.67k stars 1.56k forks source link

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

Closed kynora closed 6 years ago

kynora commented 8 years ago

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.

kynora commented 8 years ago

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.

kynora commented 6 years ago

Fix on pull request #414 .