Here's how I got around this, as it doesn't seem possible.
Step 1: Capture the MouseDown Event. Save the current position of scrollLeft and scrollTop in variables.
Step 2: In the MouseMove event, check the current position of scrollLeft and scrollTop and compare them with your variables. If they are different, cancel any operation you are about to perform. If they match, the MouseDown event did not fire using the scrollbar (or anything else that could change scrollLeft and scrollTop, for example, another animation), and you can do whatever you want!
Happy coding!
source share