Fixes a problem when body scrolls instead of a overflowed div
Fixes the problem when the user changes the scrolling areas too fast