I have a div that is scrollable that I want to conditionally stop scrolling.
The code is something like:
if(theDiv.scrollTop + theDiv.clientHeight + thisScrollAmount > theDiv.scrollHeight)
StopScrolling();
How can I get the amount the scroll scrolled?
(I know that event.wheelDelta is typically +-120, but it seems the amount that is actually scrolled when one scrolls can be quite different than that.)
EDIT
Apologies. It seems this question is unclear. I was looking for how much the div WOULD scroll if the event was not canceled by it’s handler. I was assuming that it took on different values, but it appears to only take on values +- 120.
Perhaps it should be deleted.
1 Answer