mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-05-25 15:42:24 +00:00
[fix] Forward scroll end event to ScrollView onScroll handler
Close #1728
This commit is contained in:
committed by
Nicolas Gallagher
parent
9ed9231b04
commit
e9d81afbd4
@@ -111,7 +111,9 @@ const ScrollViewBase = forwardRef<Props, *>((props, forwardedRef) => {
|
||||
if (scrollTimeout.current != null) {
|
||||
clearTimeout(scrollTimeout.current);
|
||||
}
|
||||
scrollTimeout.current = setTimeout(handleScrollEnd, 100);
|
||||
scrollTimeout.current = setTimeout(() => {
|
||||
handleScrollEnd(e);
|
||||
}, 100);
|
||||
if (scrollState.current.isScrolling) {
|
||||
// Scroll last tick may have changed, check if we need to notify
|
||||
if (shouldEmitScrollEvent(scrollState.current.scrollLastTick, scrollEventThrottle)) {
|
||||
|
||||
Reference in New Issue
Block a user