Comments (7)
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.
Here's the odd thing - it did hide the native scrollbars on the Optiscroll demo page though
from optiscroll.
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.
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.
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.
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.
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)
- native scrollbar shows when zooming out HOT 2
- Is it possible to click on the scrollbar to scroll? HOT 1
- NPM package? HOT 3
- Window scroll event and offset lost HOT 2
- initialised event HOT 2
- rtl support HOT 7
- Mouse drag event doesn't work on touchscreen laptops HOT 13
- Can't click and drag to scroll in Firefox 54 HOT 3
- contentElement settings option? HOT 3
- Can't get it working HOT 3
- Scroll dynamic elements HOT 2
- Event callback HOT 2
- How to destroy() Optiscroll? HOT 8
- Nested scrolling is jerky on iOS (iPad) HOT 4
- Can not get default Browser scroll bars to hide HOT 2
- AOS Animate and Optiscroll conflict -Stops animation on scroll
- textarea element HOT 4
- option to disable the <div class="optiscroll-h"> markup HOT 1
- multiple scrolls? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from optiscroll.