albertogasparin/Optiscroll

Optiscroll doesn't disable native scrollbars on Firefox on Mac

stereokai opened this issue · 7 comments

The problem happens when scrollbars are hidden by default, and shown only while scrolling:
screen shot 2016-01-20 at 13 44 06

It's weird because it takes place only on Firefox, but I could see in your website that it's perfectly fine, regardless of OS setting.

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.

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

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.

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

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

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.

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).