RFR: 8306083: Text.hitTest is incorrect when Text node is present in TextFlow [v3]

Karthik P K kpk at openjdk.org
Tue Jun 27 17:52:14 UTC 2023


On Tue, 27 Jun 2023 16:13:03 GMT, Andy Goryachev <angorya at openjdk.org> wrote:

> I think not only it shows incorrect insertion index when you move the mouse across that emoji (in Text.hitTest goes from 0 to 1, while expected change is 2), but I think it's also wrong because that emoji is the last symbol in that Text instance, so insertion index should be different (larger). 

Looks like the wrong insertion index is getting reported after 2nd line. I'll fix this issue.

>Are you reporting insertion index relative to the Text's text or TextRun?

The insertion index is reported relative to the Text's text incase of Text node.

-------------

PR Comment: https://git.openjdk.org/jfx/pull/1157#issuecomment-1609967354


More information about the openjfx-dev mailing list