[Webkit-unassigned] [Bug 93238] css transitions for scrollTop and scrollLeft

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 4 13:11:46 PST 2020


https://bugs.webkit.org/show_bug.cgi?id=93238

Naman Goel <naman34 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |naman34 at gmail.com

--- Comment #3 from Naman Goel <naman34 at gmail.com> ---
`scrollTo with {behavior: 'smooth'}` and 
`scroll-behavior: smooth`
is supported in every other browser.

This proposal should be closed in favor of implementing scroll-behavior. Right now, the old way to achieve the same is to polyfill the behavior using requestAnimationFrame.

One common problem with existing implementations is that use static scroll velocity rather than static duration. This means that if you scroll a long distance, it can take a very long amount of time to animate.


However, The draft specification states that 

```
The scrolling box is scrolled in a smooth fashion using a user-agent-defined timing function over a user-agent-defined period of time. User agents should follow platform conventions, if any.
```

So the Webkit implementation could choose to use a static duration instead. Further, if the ideas in this proposal seem relevant, you could add some new properties to make scroll-behavior more customizable:

```
-webkit-scroll-behavior-duration: 0.5s;
-webkit-scroll-behavior-timing-function: ease-in;
```

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200304/712537b6/attachment.htm>


More information about the webkit-unassigned mailing list