Jump to content
Search Community

ScrollTrigger.normalizeScroll(true) + ScrollSmoother disables "native" scrolling of internal content

Marco B. test
Moderator Tag

Recommended Posts

Hey forum!

First time poster so please forgive me if I do something wrong.

Attached is the codepen showcasing the issue described above. If I combine ScrollTrigger & ScrollSmoother in my project, you can't scroll inside an element using your mouse wheel 

Is there a way around this other than disabling SmoothScroller / normalizeScroll ?
Is this expected behavior?

Thanks!

See the Pen XWEbMvv by PitagoraXSoft (@PitagoraXSoft) on CodePen

Link to comment
Share on other sites

  • 6 months later...

Hi @ThinkingAbout_dev,

 

Could you provide a minimal demo showing the issue you have?

 

Based on the title of this thread maybe you're looking for the allowingNestedScroll configuration in ScrollSmoother:

const smoother = ScrollSmoother.create({
  wrapper: "#smoother-wrapper",
  content: "#smoother-content",
  smooth: 2,
  normalizeScroll: { allowNestedScroll: true }, // <- Right Here!
  ignoreMobileResize: true,
  effects: true,
  preventDefault: true
});

Hopefully this helps.

 

Happy Tweening!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...