Multi-Touch Co-ords getting muddled up

Bugs will be moved here once resolved.

Post » Wed Feb 05, 2014 4:52 am

capx


Steps to reproduce:
1. Run in browser, cocoonjs zip export or crosswalk apk
2. Touch one coloured block with one finger and hold
3. Touch the second coloured block with another finger
4. On each touch an event moves a touch indicator to the touch co-ordinates

Observed result:
On the second touch the second touch indicator moves to the co-ordinates of the first touch so that both touch indicators become superimposed.

Expected result:
The second touch indicator should be positioned to the co-ordinates of the second touch.

Browsers affected:
Chrome (android): yes (I don't have a multi-touch laptop)
Firefox (android): yes
Internet Explorer: not tested

Operating system & service pack:
W7 x64 SP1

Construct 2 version:
r158.2 x64
    
A big fan of JavaScript.
B
74
S
20
G
69
Posts: 2,210
Reputation: 43,842

Post » Wed Feb 05, 2014 1:37 pm

Closing, it's just a mistake in your events. Touch.X and Touch.Y by design only return the first touch's position. Use the XForID and YForID expressions to get the position for a particular touch ID instead.
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,772

Post » Wed Feb 05, 2014 4:15 pm

Understood - thanks @Ashley.
A big fan of JavaScript.
B
74
S
20
G
69
Posts: 2,210
Reputation: 43,842


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests