Fix YYTextView selection bug that selection cannot be done when selecting one more line (trigger scrolling action) #953
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
YYTextView 嵌套进 UIScrollView (一般是 UITableView)中时, 使用选择功能选择多行数据时同时会触发 UIScrollView 滚动, 导致无法选择多行.
修复这个 bug. 增加了一个嵌套时需要共同响应的属性
interactiveSuperScrollView
, 设置后, 将会正常屏蔽 UIScrollView 的滚动.鉴于可能导致功能异常的问题, 没有采用自动方案
当然可以更加自动, 检测父 View 为 ScrollView, 但是这样的话, 在复杂逻辑时, 比如父 View 有 2 个以上的 ScrollView , 其中有部分业务代码还控制
scrollEnabled
的属性, 则可能导致功能异常.