Jump to content

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


SamBaylus
 Share

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:

http://www.html5gamedevs.com/topic/559-gm-studio-screen-flashes-when-touched-on-android/

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:

http://www.masharcade.com/SleepyBear

 

Any ideas? Thanks!

 

::EDIT::

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

 

::EDIT EDIT::

Yeah, this was made in GameMaker: Studio

Link to comment
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

Link to comment
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.

Guest
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.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...