From 4c9dd5d7caf8e2bae4ab4d3929ce0609713a3738 Mon Sep 17 00:00:00 2001 From: Jonathan Johnson Date: Fri, 26 Jul 2024 09:46:50 -0700 Subject: [PATCH] Allowing partial glyph to be considered start --- src/widgets/input.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/input.rs b/src/widgets/input.rs index d06bfb3..18dd42f 100644 --- a/src/widgets/input.rs +++ b/src/widgets/input.rs @@ -897,7 +897,7 @@ where ) .saturating_abs(); let cursor = Cursor { - offset: if relative.x <= 0 { + offset: if relative.x <= rect.size.width / 3 { glyph.info.start } else { glyph.info.end