-
Notifications
You must be signed in to change notification settings - Fork 32
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
FlickToDismiss drops frames when it is removed from composition before it completes its dismiss animation #47
Comments
This entirely depends on your navigation stack. If your app only supports showing one screen at a time then you can't do much. You must wait till the dismiss animation is complete before removing it from the UI hierarchy. Can you refactor your media viewer screen to be shown as an overlay above other screens? This way you'll also be able to use a translucent background for media as they're being swiped up/down for dismissal. |
We used to have it as a overlay through a Dialog but that had numerous issues. So I had resort to using a separate screen. (see LemmyNet/jerboa#980) |
Yeah dialogs can be annoying. But does compose-navigation allow other ways of showing overlays without using a dialog? Can |
We do have some places that we use a Popup. But I am reluctant to make this change as we have dropped Flick for now (and the previous impl). As Flicks behaviour doesn't really fit for our usecase. As soon it enters the flick animation due to moving touch up or down. It will no longer allow to zoom. While ideally we want when a movement happens above a certain threshold. It would dismiss the action without having a impact on any actions listening to that movement. |
Do I understand this correctly that |
You could say that but what they want, is to not be interrupted while attempting to zoom. (I am mostly assuming as I don't really experience this, maybe one finger comes down significantly before the other, or their devices are much more sensitive) Feedback i got:
|
Follow up on #43 (comment)
I have implemented your library to replace the existing functionality and it seems to work well.
But I was wondering if I could remove the delay of the the dismiss action?
If I remove the delay it becomes very choppy. But I would like it to be instant like the other functionality, I already have.
see choppyness
IiccX2jkJm.mp4
The text was updated successfully, but these errors were encountered: