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

scrollBoard 增加 onScroll 事件 #34

Open
dadanliu opened this issue Jul 6, 2021 · 1 comment
Open

scrollBoard 增加 onScroll 事件 #34

dadanliu opened this issue Jul 6, 2021 · 1 comment

Comments

@dadanliu
Copy link
Contributor

dadanliu commented Jul 6, 2021

Feature request

这个特性解决了什么问题?

如果不是单纯的数据轮播,想去控制根据滚动的数据和序号配合数据去动态控制轮播的暂停和继续,现在没有这个事件;
比如我是一个websocket 持续推送实时消息的来保证每次有新数据则滚动,如果没有新数据则不滚动,这个场景需要类似监听这个scroll的事件,并暴露pause 和resume的方法

这个特性的实现形式?

在 scrollBoard/index 中的 animation 函数中加入这一句代码,task.current里有pause 和 resume if (onScroll) { onScroll({ animationIndex, task }) }

是否愿意为此特性提交PR?

@lessonli
Copy link

顶上去 我也需要这个特性 做 异步 滚动

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

2 participants