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

[New Feature] 希望初始化的时候,可以手动选择锁定的滚动方向 #1325

Open
skySlient opened this issue Feb 2, 2023 · 2 comments

Comments

@skySlient
Copy link

What problem does this feature solve?

我使用插件遇到了一个问题,初始化的时候,因为插件需要通过directionLockThreshold自动计算锁定的滚动方向,导致初始化的时候,横向滚动的元素,必须要先滚动完成一次,才能锁定滚动条,如果我手动将滚动条的高度归0,则会使元素出现弹跳的现象,所以希望可以增加该新功能

What does the proposed API look like?

配置项新增directionLocked选项,并可以在初始化的时候就根据用户传入的属性,锁定滚动条

@dolymood
Copy link
Collaborator

dolymood commented Feb 2, 2023

还是没太明白需求 可以试着PR下

@skySlient
Copy link
Author

https://xev-wechat.adbaoheng.com/Product可以参考我使用了该插件所写的页面,横向滚动的元素在第一次滚动的时候会上下弹跳

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