Skip to content

Conversation

@wolfcon
Copy link

@wolfcon wolfcon commented Apr 26, 2021

YYTextView 嵌套进 UIScrollView (一般是 UITableView)中时, 使用选择功能选择多行数据时同时会触发 UIScrollView 滚动, 导致无法选择多行.

修复这个 bug. 增加了一个嵌套时需要共同响应的属性 interactiveSuperScrollView, 设置后, 将会正常屏蔽 UIScrollView 的滚动.

鉴于可能导致功能异常的问题, 没有采用自动方案

当然可以更加自动, 检测父 View 为 ScrollView, 但是这样的话, 在复杂逻辑时, 比如父 View 有 2 个以上的 ScrollView , 其中有部分业务代码还控制 scrollEnabled 的属性, 则可能导致功能异常.

…ting one more line (trigger scrolling action)
@wolfcon
Copy link
Author

wolfcon commented Apr 26, 2021

#421 #736 #388 #775

@xia0m1ng
Copy link

xia0m1ng commented Dec 4, 2021

YYTextView.h 文件结尾好像少了 @ end。顺便感谢解决方案。

@wolfcon
Copy link
Author

wolfcon commented Feb 21, 2022

从代码中抽离代码的时候漏掉了🤣

@feihuang89
Copy link

这种方案触摸滑动很快的时候,touchesBegan 不会走,scrollView 还是会滚动。

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

Successfully merging this pull request may close these issues.

3 participants