mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2026-03-24 04:46:56 +00:00
[GH-ISSUE #1290] [Bug] 300ms delay on buttons in titlebar #499
Labels
No labels
2024
2025
2026
acct mgmt
AI
automation
bug
calendar
ci
CJK
cloud
code-block
collaboration
copy-paste
database
data migration
data sync
deploy
desktop
develop
develop
documentation
duplicate
editor
editor-plugin
emoji
export
files
flutter-only
follow-up
formula
good first issue for devs
good first issue for experienced devs
grid
hacktoberfest
HACKTOBERFEST-ACCEPTED
help wanted
i18n
icons
images
importer
improvements
infra
install
integrations
IR
kanban board
login
look and joy
mentorship
mobile
mobile
needs design
new feature
new feature
non-coding
notes
notifications
onboarding
organization
P0+
permission
platform-linux
platform-mac
platform-windows
plugins
program
pull-request
Q1 25
Q1 26
Q2 24
Q2 25
Q3 24
Q3 25
Q4 24
Q4 25
react
regression
rust
rust
Rust-only
Rust-only
Rust-starter
Rust-starter
self-hosted
shortcuts
side panel
slash-menu
sync v2
table
tablet
task
tauri
templates
tests
themes
translation
v0.5.6
v0.5.8
v0.5.9
v0.6.0
v0.6.1
v0.6.4
v0.6.7
v0.6.8
v0.7.1
v0.7.4
v0.7.4
v0.7.5
v0.7.6
v0.7.7
v0.7.8
v0.8.0
v0.8.4
v0.8.5
v0.8.9
web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AppFlowy-IO/AppFlowy#499
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cbenhagen on GitHub (Oct 16, 2022).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/1290
Originally assigned to: @AdiAr11 on GitHub.
Bug Description
When clicking on the "close side bar" or "Share" button in the title bar there is a 300ms delay before the button reacts. This feels as if the app is very slow.
This is due to the underlying the
onDoubleTaphandler of theGestureDetectorinMoveWindowDetectorwaiting for a potential second tap before defering the tap handling to its child.How to Reproduce
Click on a button in the titlebar.
Expected Behavior
The button should react immediately.
Operating System
macOS
AppFlowy Version(s)
main branch on commit
cbd84dfaaScreenshots
No response
Additional Context
No response
@ChiragKr04 commented on GitHub (Oct 16, 2022):
It might look slow. But it is a part of appflowy UX. Making it react instantly will make it snappy with no animation. I might be wrong but @annieappflowy can suggest.
@cbenhagen commented on GitHub (Oct 16, 2022):
Maybe I should have been clearer. I didn't mean to ommit the animation. This issue is about not having a 300ms delay before the animation starts.
The
GestureDetectorresponsible for this 300ms delay is only used under macOS so it seems pretty clear that the delay is is not intentional:github.com/AppFlowy-IO/AppFlowy@7b53b2c523/frontend/app_flowy/lib/core/frameless_window.dart (L43-L51)@annieappflowy commented on GitHub (Oct 17, 2022):
@cbenhagen @ChiragKr04 thanks. I can reproduce on macOS. I agree that it reacts slower than it should be.
@annieappflowy commented on GitHub (Oct 17, 2022):
@LucasXu0 , can you evaluate if this is a good issue for Hacktoberfest?
@LucasXu0 commented on GitHub (Oct 17, 2022):
OK. The main reason for this issue is that the two gestures are in conflict. I think using
Listenerinstead ofGestureDetectoris a way to fix this issue. Maybe there is a better way, but I don't find yet.@LucasXu0 commented on GitHub (Oct 17, 2022):
@AdiAr11 commented on GitHub (Oct 19, 2022):
Hi, I've successfully built the app for mac. @LucasXu0 could you please guide me a little? Is the issue because of GestureDetector in frameless_window.dart which you shared?
@AdiAr11 commented on GitHub (Oct 19, 2022):
What should I look for in this file?
@LucasXu0 commented on GitHub (Oct 20, 2022):
Hi, @AdiAr11. The file locates in
frontend/app_flowy/packages/flowy_infra_ui/lib/widget/rounded_button.dart. The share button has to delay its response because of theGestureDetectorinframeless_window.dart.@AdiAr11 commented on GitHub (Oct 20, 2022):
Oh, Okay. I'll try to fix this. Thank you!
@cbenhagen commented on GitHub (Oct 20, 2022):
You might also want to wrap your
ListenerinGestureDetectorwith an emptyonDoubleTaphandler so that double clicking your new button will not maximize the window.@AdiAr11 commented on GitHub (Oct 22, 2022):
@cbenhagen Sure, thank you!
@annieappflowy commented on GitHub (Oct 28, 2022):
@AdiAr11 , any progress update on this issue? Let us know if you need help. Thanks!
@AdiAr11 commented on GitHub (Oct 28, 2022):
@annieappflowy sorry, im out of town. I'll be back in 2 days.
I had some doubts though, I'll ask them when i get back.
@annieappflowy commented on GitHub (Nov 9, 2022):
Any update / progress on this issue? @AdiAr11
@AdiAr11 commented on GitHub (Nov 12, 2022):
Yes, sorry for late reply. I tried the above approach and it was still the same. I researched and I saw that there is a delay because of a potential second tap.
@annieappflowy commented on GitHub (Jan 2, 2023):
Thanks for the update.
@LucasXu0 can provide you with more guidance.