perfecti Posted April 11, 2022 Share Posted April 11, 2022 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 More sharing options...
Solution Cassie Posted April 11, 2022 Solution Share Posted April 11, 2022 Thanks for the kind words, and sure thing! Maybe this demo will help? See the Pen ExopjNW?editors=1011 by GreenSock (@GreenSock) on CodePen 2 Link to comment Share on other sites More sharing options...
perfecti Posted April 12, 2022 Author Share Posted April 12, 2022 14 hours ago, Cassie said: Maybe this demo will help? oh yes its so good, thx. I didn't see preventDefault in documentation Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now