Integration with a different scroll event
-
I have a jquery .on(‘scroll’) which is being used to hide a fixed header on “down” scroll, and show it on “up” scroll.
I also am using Page Scroll to ID for a fixed sidebar anchor navigation for the page.
What I would like is to prevent the header from appearing on “up” scroll, if that “up” scroll was initiated from an anchor click.
In other words:
– If normal scroll up (keyboard up/down, mouse, mobile touch), the event for showing the header is triggered
– If scroll up due to anchor click, the event for showing the header is not triggered
Would this functionality be possible?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Integration with a different scroll event’ is closed to new replies.