Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cant restore position when using react-live-route with better-scroll #19

Open
horrylala opened this issue Jun 15, 2019 · 1 comment
Open

Comments

@horrylala
Copy link

horrylala commented Jun 15, 2019

Update:
There are some mistakes in the former description, i used react-bscroll instead of better-scroll。
Sorry for that~ But it seems that they encounter the same problems~
Description:
when using better-scroll libs, it cant restore position?
it seems better-scroll using CSS attribute "transform" to scroll , but react-live-route using scrollTo to scroll 。
Of course it cant get scroll position using scrollTop or scrollLeft

Expectation:
1.when route back ,it restores right position

@fi3ework
Copy link
Owner

fi3ework commented Jun 15, 2019

I did not used better-scroll before but it sounds like an uncovered "position". I'll try to fix this.

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

No branches or pull requests

2 participants