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

将demo中样式二的代码改为browser.currentImageIndex = 3;时,拖动手势第一次会失效,第二次才可以 #33

Open
SSSure opened this issue Oct 31, 2018 · 3 comments

Comments

@SSSure
Copy link

SSSure commented Oct 31, 2018

如图,将demo中currentImageIndex改成3时,第一次拖动时无响应
image

@SSSure
Copy link
Author

SSSure commented Oct 31, 2018

这个问题在刚刚开始预览时会出现,过大概几秒后就不会出现这个问题了

@chennyhuang
Copy link
Owner

这个问题我这边不存在,无法重现

@mf168
Copy link

mf168 commented Jul 12, 2019

一楼的问题确实存在。
说下原因:两次layoutSubviews引起的,第一个正常页面布局layout,第二个设备旋转的通知layout。
所以两次layout结束,才会tap才会触发
还有didMoveToSuperview里面注意下判断条件

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