I want to make a div scroll for the number of times the wheel spins rather than the length the wheel was spun. Is this possible?
E.g. If the user spin the mouse wheel x length I need to pass a value as 10. Also if a user spin the mouse wheel x/4 length I still need to pass the value 10.
example:: something like this - Each time it spins increase the value by 1 only.
var i = 0;
$("#divD").on('scroll', function() {
i++;
});