A "white box" appears when I touch on my iPhone5!

Recommended Posts

My game is scaled for 480x320. However, on my iPhone5, there is a border due to the larger screen. This is fine. However, when I touch the game, I see a white square box blinking with my touches BEHIND the game's window. 


I checked out this topic:

To see if it would remedy the situation, but I'm still seeing the box.


Anybody with an iPhone 5 can see what I'm talking about by playing the game here:


Any ideas? Thanks!



Seems as though it only appears on Mobile Chrome! The plot thickens...!



Yeah, this was made in GameMaker: Studio

Share this post

Link to post
Share on other sites

Two solutions:

- add -webkit-tap-highlight-color: rgba(0,0,0,0); to the element which receives the event.

- add a preventDefault() call to the event


There is the same problem with the Android browser: if clicking an element triggers a Javascript event, you will see the box highlighting the element.


If that doesn't work, I don't know what will :P

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.