commit | 7bb8bf7fbce117863efad26e1ca871b7935e3603 | [log] [tgz] |
---|---|---|
author | Steve Golton <stevegolton@google.com> | Tue Mar 19 08:24:31 2024 +0000 |
committer | Steve Golton <stevegolton@google.com> | Tue Mar 19 08:24:31 2024 +0000 |
tree | 497da4a32a71ec10508a7aaea79d3ea85d20ca20 | |
parent | 13fb5d53a1958e32f297b72fffeada941fdec333 [diff] |
ui: Fix flickering track pin buttons When track pin buttons were partially obscured by a track group header, they would flicker when the mouse was hovered over both the header and the button simultaneously. This is due to the fact that their visibility was being controlled by setting their `opacity` CSS property to 0 to make these buttons invisible. Any element whose opacity is less than 1 creates a new stacking context, meaning that the button appeared above the sticky group header element. However, when hovered, the button opacity was being set back to 1, so the stacking context was lost, causing the button to be moved behind the group header and thus not receive the hover state any more, causing it's opacity to be set to 0 again, ad infinium. This CL switches from using `opacity` to control visibility to using `visibility` instead, which doesn't create a new stacking context. Change-Id: I5b5914a8f9626a830b8d6f0b4ef234fc01a9307f
Perfetto is a production-grade open-source stack for performance instrumentation and trace analysis. It offers services and libraries and for recording system-level and app-level traces, native + java heap profiling, a library for analyzing traces using SQL and a web-based UI to visualize and explore multi-GB traces.
See https://perfetto.dev/docs or the /docs/ directory for documentation.