fi3ework / react-live-route

:pushpin: An enhanced react-router-v4/5 Route that keeps route alive.
MIT License
219 stars 21 forks source link

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

Open horrylala opened 5 years ago

horrylala commented 5 years ago

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 commented 5 years ago

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