kbatchu Posted March 2 Share Posted March 2 Hello, When I use the ScrollToPlugin to scroll, on a Button (Navigation buttons) click event, to a section (Section3) past another section (Section2) that uses an Observer , it scrolls to Section3 as expected but then jumps back to Section2. How do I make sure that when the Navigation button is clicked, it scrolls to the correct panel but still activate the Observer actions on Section2, when using the mouse wheel or touch. The Observer is used to loop through the text elements i.e. txt1, txt2....txt4. PS: The Navigation button events are at the bottom of the JS code. Thanks, See the Pen RwONaBZ by kbatchu (@kbatchu) on CodePen Link to comment Share on other sites More sharing options...
Solution kbatchu Posted March 2 Author Solution Share Posted March 2 Nevermind, I figured that I needed to add a 'target' to the Observer. It works fine now. 1 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