Proposal: Exposing native scroll as API

guest271314 guest271314 at gmail.com
Fri Jun 21 14:13:27 UTC 2019


What is meant by "native scroll"?

```
window.scrollTo({
  left: leftValue, // e.g., element.getBoundingClientRect().left
  top: topValue, //  element.getBoundingClientRect().top
  behavior: "smooth"
});
```

?

On Fri, Jun 21, 2019 at 2:07 PM Adam Eisenreich <akxe at seznam.cz> wrote:

> Hello everyone. I think browsers should expose the native scroll as API.
>
> Possible uses:
> * Native-like scroll in canvas apps (games) - Google's Proxx (
> https://proxx.app/) had to do quite a bit of magic to have native scroll
> for a game.
> * Camera controls for touch device (3D model preview)
> Gesture recognition (maybe)
> * Infinite scroll (they could get rid of the invisible long div, that
> makes the scrolling inside possible) - Angular virtual scroll
> implementation https://material.angular.io/cdk/scrolling/overview
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20190621/3a81c62e/attachment.html>


More information about the es-discuss mailing list