Skip to content
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

Hide scroll bars on iOS #70

Open
toniengelhardt opened this issue Jan 9, 2023 · 5 comments
Open

Hide scroll bars on iOS #70

toniengelhardt opened this issue Jan 9, 2023 · 5 comments

Comments

@toniengelhardt
Copy link
Owner

No description provided.

@RyanPaulGannon
Copy link
Contributor

Getting nowhere with this currently.

I've tried adding the following code

{
  scrollbar-width: none !important; // Firefox
  -ms-overflow-style: none !important; // IE and Edge
  &::-webkit-scrollbar {
    // Chrome, Safari, Opera
    display: none !important;
    -webkit-appearance: none !important;
  }
}

To app.vue as body, :root and .container. Also tried to use @media (max-640px) and @media (pointer: coarse).

In assets/styles.css the same tests, I can get the scrollbar to disappear in Brave when using their emulator. But when testing using ngrok on my iPhone 13 Pro Max, it always appears. (Unsure if it's a native software issue, bug or what at present). Presumed some css maybe overriding, but as far as I'm aware I've avoided this.

@toniengelhardt
Copy link
Owner Author

No worries, I think it's maybe not possible on iOS. Apple is doing some weird stuff sometimes with their browser, e.g. input behavior, etc.

I'll test it on Android.

@toniengelhardt toniengelhardt changed the title Hide scroll bars on mobile Hide scroll bars on iOS Jan 11, 2023
@toniengelhardt
Copy link
Owner Author

On Android it works, so I renamed the issue to be iOS specific.

@RyanPaulGannon
Copy link
Contributor

Okay that's good. It works with the current code? Or did you add the code block above for testing?

Copy link
Owner Author

Current code. But I'm on Chrome, will add the compat code for Firefox and Edge as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants