SamBaylus Posted August 15, 2013 Share Posted August 15, 2013 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 Quote Link to comment Share on other sites More sharing options...
rich Posted August 15, 2013 Share Posted August 15, 2013 Is this made with Game Maker? (if so I've no idea, sorry). It might be useful if you said so in the post as it limits who can help answer it Quote Link to comment Share on other sites More sharing options...
SamBaylus Posted August 15, 2013 Author Share Posted August 15, 2013 Ahh, of course. Yes, it was made with GM:Studio. Thanks for clarifying. Quote Link to comment Share on other sites More sharing options...
remvst Posted August 15, 2013 Share Posted August 15, 2013 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 Quote Link to comment Share on other sites More sharing options...
mapagella Posted August 18, 2013 Share Posted August 18, 2013 Like remvst mentioned, this may be due to the default value of -webkit-tap-highlight-color and you'll find it in more than one browser: http://www.andrespagella.com/browser-bugs-tricks-any-frontend-dev-should-know#11 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.