wow. Animate change to left via CSS, ~500 paint/reflow events. Animate translateX - 16!
4
6
16
@johnallsopp Changing left can require a reflow dbaron.org/css/test/2003/abs… But we should detect when not needed and optimize. Cc @davidbaron
2
2
@SickingJ @johnallsopp @davidbaron technically both should cause minor reflows because both can impact the size and position of scrollbars
1
1
@jaffathecake @SickingJ @johnallsopp When there's a change to scrollbars, we fall back to reflow.
1
1
@davidbaron @SickingJ @johnallsopp interesting, how do you know there's a change to scrollbars without a reflow?
1
Replying to @davidbaron
@davidbaron @SickingJ @johnallsopp gotcha. Similar in Chrome I believe. A low cost reflow to determine if scrollbars need updating.
1
@jaffathecake @SickingJ @johnallsopp No, this is Reflow only if scrollbars need updating, and normal cost (but we could improve if needed)
2