-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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(IText): cursor detection #8972
Conversation
Build Stats
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No tests...
However I did test it in the app I am working on.
Also, I can add vertical alignment into fabric, using the impl of the app. It is a minimal change.
Thoughts?
We are not adding anything for now. I can add tests for this PR. I'm thorn for removing the method, but i understand that the localPointer would become a local pointerd depending on the text orientation and align and doesn't make much sense anymore. |
Motivation
Working on a subclass that has vertical text alignment.
This class overrides
_getTopOffset
=> rendering is perfect.However, pointer detection is off.
Traced it back to this line.
Description
The local pointer is relative to the left/top point of where the text begins.
Changes
Gist
I hate the naming of the methods in Text and subclasses.
In Action