How to keep track of .scrollTop () if body overflow:hidden?

Hello. Well, the question in the title. I have a fullscreen website and I need to hang on .scroll() action, but since the site is full screen (i.e. scrolling I don't have), there is the difficulty of tracking the scroll. How can I solve my problem?
March 19th 20 at 08:23
1 answer
March 19th 20 at 08:25
Solution
If you need to monitor scrolling the mouse wheel up to the bottom, then sign up for the event wheel:
$(window).bind('wheel', function (event) {
 if (event.originalEvent.deltaY >= 0) {
 // down
 } else {
 // up
}
 });

And the position can be obtained with the help of offset

Find more questions by tags Web DevelopmentjQueryJavaScript