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

CoreTextDemo Bug #20

Open
Gocy015 opened this issue Apr 7, 2016 · 0 comments
Open

CoreTextDemo Bug #20

Gocy015 opened this issue Apr 7, 2016 · 0 comments

Comments

@Gocy015
Copy link

Gocy015 commented Apr 7, 2016

CoreText Demo对于点击位置有一定偏差(测试上看来是x轴固定有半个字符大小的偏移),
即:在[CoreTextUtils touchContentOffsetInView: atPoint: data:] 中输出idx可以看到
点击某个字的前半部分,输出idx为当前字形的idx,点击这个字的后半部分,输出为下一个字形的idx,
虽然在真机操作的时候手指精度没这么高,但是模拟器可以操作到这个精度,而且这样的偏差可能导致一些意想不到的问题

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

1 participant