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

UX: call discourseLater on menu animations #24168

Merged
merged 7 commits into from
Oct 31, 2023
Merged

Conversation

featheredtoast
Copy link
Member

@featheredtoast featheredtoast commented Oct 30, 2023

Call discourseLater on menu animations - avoid animating during rendering work

a long recalculate style may trigger otherwise
@discoursebot
Copy link

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/new-mobile-menu-panel-moving-slow-and-laggy-on-older-devices/283204/10

Allow for smoother animations on lower end devices.
Create time between render and animations.

extend panel width targets by 20 px to account for shadows as well
@featheredtoast featheredtoast changed the title PERF: only add and remove class lists on testing UX: call discourseLater on menu animations Oct 30, 2023
@featheredtoast featheredtoast merged commit 974c508 into main Oct 31, 2023
14 checks passed
@featheredtoast featheredtoast deleted the menu-animation-perf branch October 31, 2023 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants