Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to reset Scroll Depth on page navigation? #118

Open
adrenaline681 opened this issue Feb 27, 2023 · 0 comments
Open

How to reset Scroll Depth on page navigation? #118

adrenaline681 opened this issue Feb 27, 2023 · 0 comments

Comments

@adrenaline681
Copy link

I created a custom event that triggers on scroll depth change. This works great on the first page load, but whenever I navigate to a separate page it doesn't work anymore. It seems like the scroll depth doesn't reset automatically on history change.

What can I do to reset the scroll depth anytime I have a page view event?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant