Touch events fail on Button etc.

Bugs will be moved here once resolved.

Post » Sun Oct 23, 2016 9:29 pm

Problem Description
Touch events work as expected on sprite but not on button object. Instead swiping from outside button to inside triggers istouching-event. Also affects progressbar and possibly others.

Attach a Capx
https://1drv.ms/u/s!Arx0Hsn8JahMiSNjptxJk2rcBrW-

Description of Capx
Contains minimal testcase with sprite and button

Steps to Reproduce Bug
  • Step 1 Tap/click sprite -> bgcolour changes
  • Step 2 Tap/click button -> no effect
  • Step 3 Swipe from outside button to inside -> bgcolour changes

Observed Result
See steps

Expected Result
Touch to function similarly on sprite and button etc.

Affected Browsers
  • Chrome/W10&Android: (YES)
  • Safari/Ios: (YES)
  • Edge/W10: (YES)

Operating System and Service Pack
Windows 10 (64)

Construct 2 Version ID
r233(64)
B
3
Posts: 1
Reputation: 177

Post » Mon Nov 14, 2016 5:09 pm

Closing as by design - the button receives the touch and turns it in to a click, so you should add a click event instead.
Scirra Founder
B
395
S
231
G
88
Posts: 24,367
Reputation: 193,684


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 0 guests