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

使用<cube-scroll>中的scrollTo方法滚动到指定scrollHeight位置到时候,会产生滚动后又归位的情况 #85

Open
jamesXG opened this issue Jul 18, 2019 · 4 comments

Comments

@jamesXG
Copy link

jamesXG commented Jul 18, 2019

使用中的scrollTo方法滚动到指定scrollHeight位置到时候,会产生滚动后又归位的情况,请问是怎么回事呢?

@dolymood
Copy link
Member

给个复现demo以及步骤吧

@jamesXG
Copy link
Author

jamesXG commented Jul 19, 2019

给个复现demo以及步骤吧

好的,我整理下发出来

@badspider7
Copy link

在滚动之前加个 this.$refs.scroll.refresh(); 就可以了

@badspider7
Copy link

    this.$refs.scroll.refresh();
    this.$refs.scroll.scrollTo(0, Number(top), 0, 'ease');

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

No branches or pull requests

3 participants