-
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Having trouble figuring out how to disable the highlighting features on mobile browser #2217
Comments
I've tried the following page on my android with Chrome & Firefox. I tried to bring up the clipboard options (Copy, Cut, ...) by double tapping and holding. Interestingly, when I double tap on a normal page, the selection menu appear only over text. If I tap over the background , then nothing is happening. In the snippet above I see you added , which I suppose is the file with the new styles. If we need to add styles we'd better add then inside \css\app.css , instead of creating new files for each addition. When you say Safari and Chrome, I assume you mean on iPhone, therefore basically it's just Safari/Webkit on both cases. Unfortunately there is no way for me to try it. Therefor we have to go back and forth a couple of times to resolve this. First I would like to test the page at https://kniengine.github.io/XNAGameStudio/wasm/Ship-Game/index.html to confirm that the issue exist and it's not some other change you made to your app. It would be helpful if you can test your game with the problem on an android to see if you can replicate it outside iPhone. Since this seems to be an issue with safari/webKit, then only _-webkit-user-select: none;_is needed. |
Unfortunately, when I try to run the game on my phone, I get a black screen. Works fine on a regular computer.
By the way, I'm using IPhone 8, so it's recorded here. I unfortunately don't have access to Android. @vchelaru was kind enough to try it on his Android. He couldn't seem to reproduce the issue. I get the issue with both Safari and Chrome, although Chrome is a bit better since only a magnifying glass appears whereas Safari the whole damn screen gets highlighted.
Hmm. I'll update my css so that it only has those properties. |
Here's the link to the itch.io page: https://andrewandrepowell.itch.io/break-out-extreme The password is "breakout" without the quotes. (EDIT: As I mentioned in discord, both the Itch and GitHub hosted versions of the game seem to have the same problem) |
I have tested this on Android and iOS. Android works great, but on iOS I am able to reproduce the bug on Safari and Chrome. |
The player must repeatedly tap the screen in my current game, but doing so activates the highlighting feature over the whole game window and opens up the copy menu. This happens for both Safari and Chrome.
I've tried creating the following CSS file...
...and adding a reference to it in the index.html body like so.
It would also be nice to see this solution permanently in the KNI BlazorGL template since I can't imagine any reason why anyone would want the highlighting feature enabled by default.
Still on v3.14.9001, by the way. Haven't switched to 4.0.9001.1 yet.
Thanks in advance!
The text was updated successfully, but these errors were encountered: