Move the scrollbars during the dynamic toolbar moving for WebRender
Categories
(Core :: Panning and Zooming, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox75 | --- | fixed |
People
(Reporter: hiro, Assigned: hiro)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
The issue Botond found in bug 1598978 comment 4 is specific for WebRender. For non-WebRender we do it already.
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Comment 2•5 years ago
|
||
I'd think I am on the right track but still the patch I wrote doesn't work properly.
It looks that the horizontal scrollbar container is moving properly (i.e. its transform value seems to be applied properly), but it visually clipped by something.
Botond, can you please point out me what I am still missing?
Comment 3•5 years ago
|
||
Haven't looked at the patch yet but the clipping might be the same as what I filed in https://github.com/mozilla-mobile/fenix/issues/8784
Comment 4•5 years ago
|
||
I had a look at the patch and suggested a way we could simplify it. I'm not sure if that will fix the clipping issue, but I suppose it's worth a try.
Assignee | ||
Comment 5•5 years ago
|
||
I should have explained what I did. Actually I did initially try to move the scroll thumb instead of the container, the result was also clipped, so I started thinking, oh maybe this is just a thumb, the container must be clipping the thumb area, but...
Anyways, I was thinking the clipping issue kats mentioned is a different issue, but yeah it might be caused by the same real issue. I will dig into detail. Thanks for the feedbacks by both of you!
Comment 6•5 years ago
|
||
Yeah, that's a good point. With non-WR the container does in fact clip the translated thumb, and we work around it by expanding the container's clip here.
It probably makes sense to investigate the existing clipping issue and get the thumb rendering, and then consider my suggestion as a follow-up if it doesn't break things.
Assignee | ||
Comment 7•5 years ago
•
|
||
What I've noticed/found so far;
- The clip in question is applied in AppendScrollPartsTo
- With expanding the clip the patch (D64726) works properly
- Even with expanding the clip, if we translate the scroll thumb (instead of the scroll container), the thumb is still clipped (probably it's clipped by the scroll container)
- The clip was introduced in bug 1050096 to fix some issues on non WebRender
So, there are two options to fix this issue, one is to expand the clip on WebRender, the other is to change the clip dynamically.
To do the latter, in my understandings, we need to make clip animatable in WebRender just like transforms by APZ. This sounds a tough work at least for me.
If expanding the clip doesn't cause side effects, I'd prefer it.
There may be other options though.
Assignee | ||
Comment 8•5 years ago
|
||
Pushed the updated patch which including the expanding code.
Assignee | ||
Comment 9•5 years ago
|
||
Oops, I forgot about mentioning the other clipping issue kats noticed.
Though I haven't found the clip for the issue, but it seems a different issue. There seems places that we don't factor zoom scale into.
Assignee | ||
Comment 10•5 years ago
|
||
(In reply to Hiroyuki Ikezoe (:hiro) from comment #9)
Oops, I forgot about mentioning the other clipping issue kats noticed.
Though I haven't found the clip for the issue, but it seems a different issue. There seems places that we don't factor zoom scale into.
Filed bug 1619169 for this issue.
Updated•5 years ago
|
Comment 11•5 years ago
|
||
Comment 12•5 years ago
|
||
bugherder |
Description
•