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

苹果和安卓手机光标显示不一致 #14

Closed
abings opened this issue Jul 30, 2019 · 3 comments · Fixed by #25
Closed

苹果和安卓手机光标显示不一致 #14

abings opened this issue Jul 30, 2019 · 3 comments · Fixed by #25

Comments

@abings
Copy link

abings commented Jul 30, 2019

在iPhone 和 安卓上,两个光标的高度不一致,苹果上录入 无抖动,安卓上回会抖动
苹果手机光标截图:

安卓手机光标截图

@zmtzawqlp
Copy link
Member

as design,官方就这样设计的,安卓会比ios 上下各小 2.0

@zmtzawqlp
Copy link
Member

// TODO(garyq): This is no longer producing the highest-fidelity caret
// heights for Android, especially when non-alphabetic languages
// are involved. The current implementation overrides the height set
// here with the full measured height of the text on Android which looks
// superior (subjectively and in terms of fidelity) in _paintCaret. We
// should rework this properly to once again match the platform. The constant
// _kCaretHeightOffset scales poorly for small font sizes.
//
/// On iOS, the cursor is taller than the cursor on Android. The height
/// of the cursor for iOS is approximate and obtained through an eyeball
/// comparison.

@zmtzawqlp zmtzawqlp reopened this Aug 30, 2019
@zmtzawqlp
Copy link
Member

我先改成一致高度好了,我看了下安卓系统内部的光标

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants