Git Product home page Git Product logo

Comments (7)

albertogasparin avatar albertogasparin commented on August 23, 2024

Thanks for pointing this out. I saw that an error is thrown on FF Mac when only trackpad is used.
However the custom scrollbar will not be enabled on FF Mac (on trackpad) anyway, as there is no way to hide the browser one: see https://bugzilla.mozilla.org/show_bug.cgi?id=926294.

I've pushed a new version with the fix and updated the readme with the relevant information.

from optiscroll.

stereokai avatar stereokai commented on August 23, 2024

Here's the odd thing - it did hide the native scrollbars on the Optiscroll demo page though

from optiscroll.

albertogasparin avatar albertogasparin commented on August 23, 2024

If you plug the mouse, then the plugin will still "work" because the offset right will persist. However, together with the scrollbar we are also loosing 16px of content that is now clipped.

from optiscroll.

stereokai avatar stereokai commented on August 23, 2024

Again, I don't understand why the emphasis on connecting a mouse - it already worked on your website, before your fix - with or without a mouse attached

from optiscroll.

albertogasparin avatar albertogasparin commented on August 23, 2024

It was not really working. It was wrongly clipping 16px of content out of the view. The expected behaviour on Firefox Mac is:

  • with mouse attached Optiscroll works as expected and hides the scrollbars
  • with trackpad only, Optiscroll keeps the native scrollabars as we cannot hide them with CSS

from optiscroll.

stereokai avatar stereokai commented on August 23, 2024

Are you using an Apple mouse? Because I'm using a Microsoft mouse (the drivers are different) and the result is the same - Native hidden scrollbars appear while scrolling, alongside Optiscroll's scrollbars (I of course used forceScrollbars: true.

from optiscroll.

stereokai avatar stereokai commented on August 23, 2024

Sorry, silly mistake - I didn't refresh Firefox after enabling native hidden scrollbars - that's why it was working for me. After refreshing - It doesn't work (as expected).

from optiscroll.

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.