Giter Site home page Giter Site logo

Hide scroll bars on iOS about merklin HOT 5 OPEN

toniengelhardt avatar toniengelhardt commented on May 26, 2024
Hide scroll bars on iOS

from merklin.

Comments (5)

RyanPaulGannon avatar RyanPaulGannon commented on May 26, 2024

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.

from merklin.

toniengelhardt avatar toniengelhardt commented on May 26, 2024

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.

from merklin.

toniengelhardt avatar toniengelhardt commented on May 26, 2024

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

from merklin.

RyanPaulGannon avatar RyanPaulGannon commented on May 26, 2024

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

from merklin.

toniengelhardt avatar toniengelhardt commented on May 26, 2024

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

from merklin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.