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

能否增加配置禁止用户手动滑动 #3

Open
Robotxm opened this issue Sep 16, 2023 · 5 comments
Open

能否增加配置禁止用户手动滑动 #3

Robotxm opened this issue Sep 16, 2023 · 5 comments

Comments

@Robotxm
Copy link

Robotxm commented Sep 16, 2023

目前看起来内部实现是 UIScrollView。在轮播图以外的某些业务场景下(比如说垂直滚动的文字公告)只希望能自动定时滚动,不希望用户手动滑动,能否暴露一个配置项呢?

@zgjff
Copy link
Owner

zgjff commented Sep 17, 2023

Config中的auoLoop设置为false

@Robotxm
Copy link
Author

Robotxm commented Sep 17, 2023

我看注释里说 autoLoop 是用来控制自动轮播的,我现在想禁用的是用户手动的滑动手势,用这个配置也可以吗?

/// 是否自动轮播,默认`true`自动轮播
public var autoLoop = true

@zgjff
Copy link
Owner

zgjff commented Sep 18, 2023

现在没有这个功能,等后续新增一个

@zgjff
Copy link
Owner

zgjff commented Sep 18, 2023

最新版本已添加如下字段,可以更新pod

/// 能否手动滑动,默认true可以手动滑动
public var manualSlidingEnable = true

@zhangzongqi
Copy link

pageView可以根据设置的滚动方向横竖显示吗

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