Code Monkey home page Code Monkey logo

Comments (4)

albertogasparin avatar albertogasparin commented on June 9, 2024

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.

Overpowered avatar Overpowered commented on June 9, 2024

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.

albertogasparin avatar albertogasparin commented on June 9, 2024

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.

Overpowered avatar Overpowered commented on June 9, 2024

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)

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.