Is there a (reliable) way to distinguish between scroll event initiated by mousewheel versus when user uses browser scrollbar or scrolls by touch? If I add this event I get true in both cases.
document.on('scroll', function(){
});
Is there a (reliable) way to distinguish between scroll event initiated by mousewheel versus when user uses browser scrollbar or scrolls by touch? If I add this event I get true in both cases.
document.on('scroll', function(){
});
You could detect the mouse wheel: Answer equivalent: - Mousewheel event in modern browsers - List item
window.addEventListener("wheel", event => console.info(event.deltaY));