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

Compose and backPressedHandler interfere with first touch event #830

Open
rjrjr opened this issue Jul 8, 2022 · 0 comments
Open

Compose and backPressedHandler interfere with first touch event #830

rjrjr opened this issue Jul 8, 2022 · 0 comments
Labels
ui Related to UI integration

Comments

@rjrjr
Copy link
Contributor

rjrjr commented Jul 8, 2022

https://workflow-community.slack.com/archives/CHTFPR277/p1657276987100999

Noticing a really strange issue with BackStackScreen and Compose – given there is BackButtonScreen or BackHandler/backPressedHandler in the stack and I press back button, the UI seems to block the first touch event
Not really sure if it's the best explanation, but a button gets pressed only works on a second tap, same with lists, etc

Did some more investigation, and I'm not seeing this issue when

  • using BackStackScreen as root rendering via WorkflowLayout
  • replacing BackStackScreen with a custom View-based Screen (Compose -> View -> Compose)
    So looks like this is really specific to Compose -> BackStackScreen -> Compose :thinking_face:

Same on both 1.7.1 and 1.8.0-beta04

@vgonda> Hmmmm. I wonder if we should be calling composeView.setBackHandler somewhere

@rjrjr rjrjr added the ui Related to UI integration label Jul 8, 2022
@rjrjr rjrjr changed the title Compose and backPressedHandler interfere with first touch event Compose and backPressedHandler interfere with first touch event Jul 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ui Related to UI integration
Projects
None yet
Development

No branches or pull requests

1 participant