WICG / layout-instability

A proposal for a Layout Instability specification
https://wicg.github.io/layout-instability/
Other
159 stars 27 forks source link

Specify layout shifts during drag #107

Closed npm1 closed 2 years ago

npm1 commented 3 years ago

We want that layout shifts during drag have hardRecentInput set to true whereas those during scrolls have hadRecentInput set to false. This means we need to wait a bit after pointerdown to determine whether the user is scrolling or dragging. We can wait until pointercancel/pointerup (easiest way), but then many frames may have occurred in between. So in order to properly surface attribution, we want to surface multiple LayoutShift entries. Otherwise we'd have to somehow merge the attributions from multiple frames, which can lead to confusion. Currently we buffer only the scores, so instead we could buffer the whole entries.

npm1 commented 3 years ago

CC @LanWei22

npm1 commented 2 years ago

This is a dupe of https://github.com/WICG/layout-instability/issues/18