Jump to content
Search Community

Observer how block scroll?

perfecti test
Moderator Tag

Go to solution Solved by Cassie,

Recommended Posts

Hello, I started using your new Observer and it's amazing

 

And I was wondering if I can use it to block the scroll in the element until some condition is met?

For example, I launch a slider when scrolling through an observer, and I need that until it ends, the scroll is not available

 

now I separately check the scroll through the wheel and stop it with preventDefault

See the Pen MWrXMbO by Speculant (@Speculant) on CodePen

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