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

Fix YYTextView selection bug that selection cannot be done when selecting one more line (trigger scrolling action) #953

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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

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

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.

2 participants