Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ class GestureHandlerOrchestrator(
top + view.height > parent.height
}

private fun extractAncestorHandlers(view: View, coords: FloatArray, pointerId: Int): Boolean {
private fun extractAncestorHandlers(view: View, coords: FloatArray, pointerId: Int, event: MotionEvent): Boolean {
var found = false
var parent = view.parent

Expand All @@ -509,6 +509,10 @@ class GestureHandlerOrchestrator(
handlerRegistry.getHandlersForView(parent)?.let {
synchronized(it) {
for (handler in it) {
if (shouldHandlerSkipHoverEvents(handler, event)) {
continue
}

if (handler.isEnabled && handler.isWithinBounds(view, coords[0], coords[1])) {
found = true
recordHandlerIfNotPresent(handler, parentViewGroup)
Expand Down Expand Up @@ -568,7 +572,7 @@ class GestureHandlerOrchestrator(
if (coords[0] in 0f..view.width.toFloat() &&
coords[1] in 0f..view.height.toFloat() &&
isViewOverflowingParent(view) &&
extractAncestorHandlers(view, coords, pointerId)
extractAncestorHandlers(view, coords, pointerId, event)
) {
found = true
}
Expand Down
Loading