-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
full page grey splash on ios #11154
Comments
This comment has been minimized.
This comment has been minimized.
I produced this issue on real Apple device, screen capture is tricky, so I took two pictures, this grey splash is noticeable, I cloned the create-react-app example, build and deployed it at here, I believe if you try this on real device, you can notice the splash, many thanks! |
I can reproduce the issue at the linked example. |
The simplest reproduction I could build: import React from "react";
import ReactDOM from "react-dom";
function Index() {
return <button onMouseDown={() => {}}>Wtf</button>;
}
ReactDOM.render(<Index />, document.querySelector("#root")); https://codesandbox.io/s/p3npm3o6j7 I don't think that we can do anything about it. I have opened a bug on iOS side: https://bugreport.apple.com/web/?problemID=39801425 |
One more though, removing the button from the page solves the problem: https://codesandbox.io/s/v39j4kzov5. |
@gaearon Thanks for the heads up. |
I guess you can work around it by detecting iOS and assuming it won't have mouse support (so you can maybe map mouse events to touch events directly, thereby preventing React from registering a mouse listener). I don't know if that's a very good strategy though. |
I'm using create-react-app and material, notice that on physical ios device, the page splashes, tried
-webkit-tap-highlight-color: transparent
, not working, don't know why, so I tried this example on material-ui repo, the example also get splashes, is this not a bug? If not, how can I fix it. Thanks!!!Your Environment
The text was updated successfully, but these errors were encountered: