I am trying to get scroll position using AJS.$(window).scrollTop() in window.scroll callback function but this always returns zero.
How do I get scrollTop() in Confluence? Do I need to get the scrollTop() from a particular element?
I am using Chrome.
Please check if changing the element like Melissa did on similar question is working for you too - https://community.atlassian.com/t5/Confluence-questions/Re-Why-is-AJS-window-scroll-not-firing-in-Confluenc/qaq-p/706092/comment-id/94464#M94464
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.