RFR: 8282290: TextField Cursor Position one off [v2]
Andy Goryachev
angorya at openjdk.org
Thu Nov 30 17:51:29 UTC 2023
On Thu, 16 Nov 2023 06:50:36 GMT, Karthik P K <kpk at openjdk.org> wrote:
>> Yes, right now it is a bit magic. At least the first if can be simplified still, as `!= 4` will also handle `== 0`.
>
> I agree with Andy here. However the first condition can be simplified without any side effects but I had seen some side effects if we remove second condition. Hence simplified the first condition as suggested above and maintained second condition as it is.
we'll address this `== 4` logic once and if the new caret info API comes in.
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/1287#discussion_r1411063655
More information about the openjfx-dev
mailing list