Canvas oncontextmenu="return false;"

Discussion and feedback on Construct 2

Post » Fri Feb 11, 2011 6:13 pm

Right clicking during a game brings up context menu in a lot of browsers which interrupts the user flow, if you add:

oncontextmenu="return false;"

to the canvas element it should prevent this, proposing this as a default setting for all exports.
Image Image
Scirra Founder
B
155
S
41
G
34
Posts: 4,372
Reputation: 53,346

Post » Fri Feb 11, 2011 6:23 pm

Ah, thanks, nice snippet. Added to next build.
Scirra Founder
B
383
S
224
G
86
Posts: 24,106
Reputation: 190,410


Return to Construct 2 General

Who is online

Users browsing this forum: Darknessed, Nintend0Nerd, Renfd, Ticket Games and 10 guests