-
Notifications
You must be signed in to change notification settings - Fork 40
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
Why deplay 600ms when click success? #74
Comments
Maybe provide a setting to adjust the delay time? |
The 600ms delay happens when hiding the button view. This delay ensures the completion of the item animation for selection, preventing the dialog or view from disappearing abruptly. However, this delay is not applied if the dialog or view includes buttons. The delay occurs before any listeners are triggered and before the dialog closes. A shorter delay might lead to issues, but using the buttons view could be more suitable for your use case. Once the user clicks the positive button, the dialog closes immediately. |
I still think that when there is no button displayed, a shorter delay should be provided for a better user experience. But I respect your existing logic. |
Can you show me a recording of this scenario? I remember that the duration of selection animations was up to 600 ms, which is why it's set to 600 ms. However, if I'm wrong and it's less, we can reduce it. A minimum would be around 300 ms. |
screen-20240102-213726.mp4And this is my code https://github.com/Mystery00/XhuTimetable/blob/master/app/src/main/java/vip/mystery0/xhu/timetable/ui/activity/PagerWeekCourse.kt#L257-L274 |
screen-20240102-215550.mp4Another scenario with code |
I agree, this delay is too much. The screencasts above clearly show that the app hangs for 600ms |
Will be fixed when I find the time, promised! |
I will go for a 300ms delay. Looks fine to me with the OptionDialog and CalendarDialog. If you see any issues due to this change, let me know. |
sheets-compose-dialogs/core/src/main/java/com/maxkeppeker/sheets/core/utils/BaseConstants.kt
Line 31 in 5b0d0bb
sheets-compose-dialogs/core/src/main/java/com/maxkeppeker/sheets/core/models/base/BaseBehaviors.kt
Lines 47 to 51 in 5b0d0bb
After a successful operation, I noticed a delay of approximately 600 milliseconds before the completion callback for the subsequent operation is triggered. I'm curious about the reason behind this design. What is the intended purpose of this delay? I would appreciate an explanation. Thank you!
The text was updated successfully, but these errors were encountered: