Reframe after adding `will-change: transform;` breaks scroll event handler
Categories
(Core :: Layout, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr60 | --- | unaffected |
firefox64 | --- | wontfix |
firefox65 | --- | wontfix |
firefox66 | --- | fixed |
People
(Reporter: denschub, Assigned: emilio)
References
()
Details
(Keywords: regression)
Attachments
(1 file)
This was originally filed as a WebCompat bug, but it looks like this is a regression of bug 1479859.
The site in question has a full-viewport overlay that gets scrolled away via JS on the scroll
event. When dragging starts, the site adds a CSS class that adds will-change: transform
to the element, which sometimes results in us no longer processing the scroll events, and the element not getting scrolled away.
Reporter | ||
Comment 1•6 years ago
|
||
Emilio, since you helped in the WebCompat bug, is this something you can look at?
Assignee | ||
Comment 2•6 years ago
|
||
Is there any chance you could try to find a bit more reduced test-case for this? I tried to come up with one, but couldn't (latest attempt is https://crisal.io/tmp/crappy-scroll.html).
If the answer is not is ok, I'll take a quick look at rr today, but if I don't figure out I might need to move on, since I'm swamped with other stuff :(
Reporter | ||
Comment 3•6 years ago
|
||
Is there any chance you could try to find a bit more reduced test-case for this?
I'll give it a try. Let's cancel your ni? for now, I'll ping back if I have a testcase (or when I have given up. :))
Assignee | ||
Comment 4•6 years ago
|
||
Thanks!
Assignee | ||
Comment 5•6 years ago
|
||
So the issue here is that adding will-change: transform
to an already-transformed frame will reframe it.
I think there's no underlying correctness issue, but reframing in this case is inefficient and results in this havoc.
Assignee | ||
Comment 7•6 years ago
|
||
Current basically untested attempt since I got to run: https://treeherder.mozilla.org/#/jobs?repo=try&revision=f056e003eb7f6f2aa235ef0ce2c2dcebb7b23c51
Assignee | ||
Comment 8•6 years ago
|
||
Assignee | ||
Comment 9•6 years ago
|
||
Comment 10•6 years ago
|
||
Comment 11•6 years ago
|
||
bugherder |
Updated•6 years ago
|
Reporter | ||
Updated•6 years ago
|
Description
•