diff options
author | crupest <crupest@outlook.com> | 2021-11-21 20:46:00 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-11-21 20:46:00 +0800 |
commit | 48a70ee60683d6ced778ad82f4510975c74dc4c7 (patch) | |
tree | 2b27f4301cbf1dfd0f60d88dcd72a0670696cbfd /src | |
parent | 3f8e493423b7cfe96ab53531078b803da7beccbe (diff) | |
download | cru-48a70ee60683d6ced778ad82f4510975c74dc4c7.tar.gz cru-48a70ee60683d6ced778ad82f4510975c74dc4c7.tar.bz2 cru-48a70ee60683d6ced778ad82f4510975c74dc4c7.zip |
...
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/controls/TextHostControlService.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/controls/TextHostControlService.cpp b/src/ui/controls/TextHostControlService.cpp index 870d643f..b250ccae 100644 --- a/src/ui/controls/TextHostControlService.cpp +++ b/src/ui/controls/TextHostControlService.cpp @@ -55,7 +55,7 @@ TextControlMovePattern TextControlMovePattern::kUp( gsl::index current_position) { auto text_render_object = service->GetTextRenderObject(); auto rect = text_render_object->TextSinglePoint(current_position, false); - rect.top -= 1.f; + rect.top -= 0.1f; auto result = text_render_object->TextHitTest(rect.GetLeftTop()); return result.trailing ? result.position + 1 : result.position; }); |