Comments (4)
What do you mean by "nested div"? Do you mean nested scroll?
Optiscroll automatically adds the -webkit-overflow-scrolling: touch;
for you to the scrollable content: are you trying to create another scrollable section inside an Optiscroll element and not using Optiscroll there?
Can you create a codepen/codesnadbox/... to share the code so I can see?
from optiscroll.
You are right, I mean "nested scrolling". I have tried to create a fiddle example, but it semmes to be that I cant execute your js from github by just linking it?
My try: https://jsfiddle.net/h78e2nom/1
from optiscroll.
There is no CDN version available so you have to manually add it to the project. I don't know how to create multiple files with jsfiddle so I've created this for you: https://codesandbox.io/s/jolly-goldwasser-jwl3e
I have the impression that you forgot to add the optiscroll
class to the scrollable elements. Both overflow: auto
and -webkit-overflow-scrolling: touch
are handled by Optiscroll if you add that class, so there is no need for you to add those styles manually to your divs.
from optiscroll.
Thx for your test-example. You are right, your script works fine. It was really heavy to figure out what cause the flickering - I founde out that iOS seemes to have trouble with an transition effect inside my nested scrolling, or there is an transition doubling with an other external plugin - I am not absolutly sure - but by deleting my transition effect for this div I have solved it. So, all is fine. Big thx again for your great support!
from optiscroll.
Related Issues (20)
- Optiscroll doesn't disable native scrollbars on Firefox on Mac HOT 7
- 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
- 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.