Skip to content

Handle back gesture on Android 13+#72

Merged
paufau merged 1 commit intopaufau:mainfrom
wanderlog:hazel/api33-back-gesture
Mar 10, 2026
Merged

Handle back gesture on Android 13+#72
paufau merged 1 commit intopaufau:mainfrom
wanderlog:hazel/api33-back-gesture

Conversation

@fractalbeauty
Copy link
Contributor

Motivation

This PR fixes back gesture handling on Android 13+, which introduced new back gesture APIs. We were experiencing a bug where using the back gesture visually closed by modal, but there was still an element covering the screen and blocking interaction. This was likely because the back gesture caused the native dialog to be dismissed, but didn't notify JS to properly handle it.

Closes #66

Changes

  • On Android 13+, register a back handler on the native dialog to prevent the default behavior and notify JS to handle the event

Testing

Applying this patch fixed the issue in our app.

@fractalbeauty fractalbeauty force-pushed the hazel/api33-back-gesture branch from ec5049a to 71ea4bf Compare February 26, 2026 21:39
@vilson-junior-squadra
Copy link
Contributor

@paufau can you approve that? <3

@paufau
Copy link
Owner

paufau commented Mar 10, 2026

Thanks for raising the PR and sorry for the long delay.
I'll merge the PR asap, test it within a few days and release a new version.
Very much appreciate your support!

@paufau paufau merged commit b31ffbf into paufau:main Mar 10, 2026
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.

[BUG]: Android Back Button dismisses visual content but leaves transparent overlay blocking interaction

4 participants