profiler
profiler copied to clipboard
Memory track hover dot affects scrollable size in header
Steps to reproduce:
- Go to https://perfht.ml/2CpYC2S
- Scroll down in the header to the very bottom.
- Hover the memory track for Web Content (2/2) in the right half of the track, where the orange graph is very low.
- Without moving the mouse, scroll down.
- Unhover.
Expected results: At step 4 you shouldn't be able to scroll down more. So that step 5 doesn't make the header jerk.
I think we need to make the graph overflow:hidden so that the dot doesn't extend beyond the graph's size. Additionally, we need to shift the graph itself a little bit inwards so that the dot isn't clipped off. We already have code for this inward shifting:
https://github.com/firefox-devtools/profiler/blob/5881060bdf60331598dae5684331a37dc74ff8f2/src/components/timeline/TrackMemoryGraph.js#L149-L155
I've tried to reproduce this issue but I don't get the same expected results in my Firefox browser. Has it been resolved?
I can still reproduce this. Make sure that your mouse is in the "low" part of the orange graph while you scroll down, so that the "hover dot" is as low as possible.