Safari IOS - on click does not seem to work

Discussion and feedback on Construct 2

Post » Thu May 11, 2017 10:27 am

Shameful unresearched (on my part) question: is there a known issue or workaround when an on click event does not work on Safari (and Chrome) on IOS?
I do not own an iPhone, so cannot test this myself.
I have done some searches on the forum, but could not find anything.

The current situation:
HTML 5 export with on click events and some webgl effects works fine on Chrome - android.
But on Safari and Chrome on an iPhone (3 phones tested) it does not registrate the touch (on touch sprite continue: nothing happens).

I understand this cannot be solved with so little information, but I am wondering if anyone experienced the same.
B
28
S
6
G
7
Posts: 678
Reputation: 5,676

Post » Thu May 11, 2017 5:52 pm

@mumu64

I have used on touch on many iphones with no trouble. On Click refers to mouse input and will not respond to a touch, On Touch will respond to a touch and a mouse click (unless you tell the Touch object to not also act as a mouse).

so make sure you aren't mixing up your events...
B
96
S
33
G
20
Posts: 438
Reputation: 17,665

Post » Fri May 12, 2017 2:59 pm

Thank you, i will change it to touch. :)
B
28
S
6
G
7
Posts: 678
Reputation: 5,676


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 13 guests