Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

native scrollTop/Left #12

Open
drcmda opened this issue Dec 22, 2018 · 1 comment
Open

native scrollTop/Left #12

drcmda opened this issue Dec 22, 2018 · 1 comment

Comments

@drcmda
Copy link

drcmda commented Dec 22, 2018

This looks like a really useful lib! Browsed through the code a little and noticed it uses onFrame to update scroll position. I think it was react-spring 5 that introduced native support to animate scrollTop/Left, see: https://codesandbox.io/embed/wo59nvw3p7 And the other way round, reacting to scroll position: https://codesandbox.io/embed/py912w5k6m

That would remove some complexity and perhaps make it easier to add features. 😊

@arturmiglio
Copy link
Collaborator

@drcmda I am working on PR that changes from animating scrollTop/Left to css transforms... I did check the examples you sent, but animating scrollTop/Left is very buggy on Android-Chrome. That was my main motivation to change to transforms. Thanks for the input!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants