Skip to content

Commit

Permalink
Mark handler as not in bounds after manual activation
Browse files Browse the repository at this point in the history
  • Loading branch information
m-bert committed Jul 31, 2023
1 parent 78791f1 commit d5e4d04
Showing 1 changed file with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -582,17 +582,16 @@ class GestureHandlerOrchestrator(

fun activateNativeHandlersForView(view: View) {
handlerRegistry.getHandlersForView(view)?.forEach {
if (it is NativeViewGestureHandler) {
this.recordHandlerIfNotPresent(it, view)
val wasInBounds = it.isWithinBounds

it.markAsInBounds(true)
it.begin()
it.activate()
it.end()

it.markAsInBounds(wasInBounds)
if (it !is NativeViewGestureHandler) {
return@forEach
}
this.recordHandlerIfNotPresent(it, view)

it.markAsInBounds(true)
it.begin()
it.activate()
it.end()
it.markAsInBounds(false)
}
}

Expand Down

0 comments on commit d5e4d04

Please sign in to comment.