Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emit changes to pointersInside #3348

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

oblador
Copy link
Contributor

@oblador oblador commented Jan 21, 2025

Description

Currently onHandlerStateChange will only send events whenever the handler state changes. However for the use case where one wants to resign highlight from the button whenever the user moves their pointer away from it, the only way is to use the onGestureEvent. This handler is however exceptionally noisy especially on Android, to the extent where I get UI thread frame drops when using worklets.

This MR emits additional events for the quite rare case where pointersInside prop changes for active gesture handlers to support this use case in a performant way.

Test plan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant