Closed andreialecu closed 3 years ago
This also differs from the current implementation. With this change, isScrolling
will only be set to a falsy value after the momentum scroll completely finishes (as opposed to immediately after the user lifts the finger).
However, I tested iOS and I didn't notice anything breaking. (didn't test Android)
Genius solution 👍 Everything is working on android.
Fixes #66
Open for discussion. I didn't notice any breakage from doing it this way.
The idea behind it is that if we detect
onScroll
being called, then we setisScrolling
to1
. OnceonScroll
stops firing then it is set back to0
.This has the benefit and side effect that other types of scroll besides those initiated by
onBeginDrag
are handled by default (such as programatic scrolls)