Fix PointerEvents not dispatching post-scroll (#44238)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/44238

Changelog: [Android][Fixed] PointerEvents were not dispatching after a scroll event

Reviewed By: RSNara

Differential Revision: D56519337

fbshipit-source-id: 72ea6fba583f1105e6c71560fc3a06913287844f
This commit is contained in:
Pieter De Baets
2024-04-24 08:22:00 -07:00
committed by Facebook GitHub Bot
parent 767197c9a2
commit 766ece7b9b
@@ -116,7 +116,7 @@ public class ReactSurfaceView(context: Context?, private val surface: ReactSurfa
override fun onChildEndedNativeGesture(childView: View, ev: MotionEvent) {
val eventDispatcher = surface.eventDispatcher ?: return
jsTouchDispatcher.onChildEndedNativeGesture(ev, eventDispatcher)
jsPointerDispatcher?.onChildStartedNativeGesture(childView, ev, eventDispatcher)
jsPointerDispatcher?.onChildEndedNativeGesture()
}
override fun handleException(t: Throwable) {