Re: [csswg-drafts] [scroll-animations-1] currentTime when scroll range is 0 (again) (#7778)

> I don't think I agree with the expectation here. When a scroller shrinks from scrollable to not scrollable the animation will arbitrarily jump to the end even if it was previously at 0 progress (and is still at 0 scrollTop / scrollLeft), which to me seems surprising.

I see. When the user hasn’t scrolled the scroller, suddenly jumping to the end state seems weird indeed. In the progress bar example it would go from no progress bar at all to a full progress bar upon becoming not scrollable. It’s better to not have it jump from 0% to 100%.

Additionally, when the user has scrolled a little bit the progress bar would grow from 75% (for example) to 100% width as the scroller grows, to then have it disappear when the scroller becomes not scrollable. This behavior is similar to how scrollbars work: these also disappear when there’s nothing to scroll.

I’m OK with leaving this “as is”. Maybe in the future we’ll hear of use cases where the other behavior is needed, and can then come up with a solution.

-- 
GitHub Notification of comment by bramus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7778#issuecomment-1310064325 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 10 November 2022 10:19:35 UTC