I try to find the scroll position using mousewheel
event like below:
container.on("mousewheel", function(e) {
if(e.originalEvent.deltaY>0){
//down
}else{
//up
}
});
and my problem is when I scroll it down delta equals negative value at the end. Here is the screenshot of values:
I tried to compare old and new value of scroll top of element but got same result. Is there any different way of handling it?
P.S : The values that are shown are scrolled with touchpad, Device: Macbook Pro