-
Notifications
You must be signed in to change notification settings - Fork 57
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
EZP-30269: [Content Tree] Collapse all button jumps a little bit when scrolling #888
EZP-30269: [Content Tree] Collapse all button jumps a little bit when scrolling #888
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change solves the issue completely only on Chrome.
We agreed to create separate ticket for Firefox (and others).
While working on something you must provide support for all supported browsers. It is waste of time time fixing it for Chrome only and traveling back in time to fix it in Firefox, Edge, etc. |
This does not solved problem in 100% in Firefox but it is significant improvement and only minor flickering is sometimes visible (at least on my computer). |
706b057
to
7158f0a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No new issues after rebase 🙂
I was inspired by: https://css-tricks.com/styling-based-on-scroll-position/
Previously we were afraid of poor performance because of frequent updates of DOM element and use of
getBoundingClientRect
. Current solution should be performant.Before
After
Checklist:
$ composer fix-cs
)