About 89,300 results
Open links in new tab
  1. javascript - Capturing the "scroll down" event? - Stack Overflow

    The default action of a wheel event is implementation-specific, and doesn't necessarily dispatch a scroll event. Even when it does, the delta* values in the wheel event don't necessarily reflect …

  2. javascript - How to capture all scrolling events on a page without ...

    $("*").scroll(function(e) { // Handle scroll event }); In vanilla JavaScript, you can set the useCapture boolean to true on your addEventListener call, and it will fire on all elements, including those …

  3. javascript - Detecting scroll direction - Stack Overflow

    From MDN webdocs: Note: Don't confuse the wheel event with the scroll event. The default action of a wheel event is implementation-specific, and doesn't necessarily dispatch a scroll event. …

  4. javascript - How to listen to scroll event on a scrollable element ...

    Mar 11, 2019 · You can listen for a scroll event on any element using the following code: element.addEventListener("scroll", function(){ // do stuff }); You can then get the current scroll …

  5. How to capture scroll event? - Stack Overflow

    I want to implement infinite scrolling. Below is a short form of my layout. Since I have some elements relative positioned the javascript scroll event does not fire. How can I fix this problem …

  6. javascript - How to trigger an on scroll event without scrolling ...

    Mar 8, 2016 · Note that only the first line of code is necessary, the other one is just to return the scroll back to where it was. I had to trigger a scroll function on a button. If you happen to tap …

  7. Scroll event listener javascript - Stack Overflow

    May 23, 2017 · scroll event somehow doesn't work if you hide the body level overflow and replace it with scroll connected to div. wheel event works in this situation. – JkAlombro Commented …

  8. javascript - How do I know when I've stopped scrolling ... - Stack …

    Jan 6, 2011 · If a new scroll event occurred in the meantime, the timer is aborted and a new one is created. If not, the function will be executed. You probably have to adjust the timing. Also …

  9. javascript - Mousewheel event in modern browsers - Stack Overflow

    window.addEventListener("wheel", event => console.info(event.deltaY)); Browsers may return different values for the delta (for instance, Chrome returns +120 (scroll up) or -120 (scroll …

  10. javascript - Detect whether scroll event was created by user - Stack ...

    There is one more way to separate the user-created scroll: you can use the alternative event handlers, for example 'mousewheel', 'touchmove', 'keydown' with codes 38 and 40 for arrow …

Refresh