diff options
author | 2024-08-12 02:54:22 +0200 | |
---|---|---|
committer | 2024-08-12 02:54:22 +0200 | |
commit | be7d175388076cf24ca902a2d4cd457ce2a8e9ab (patch) | |
tree | 55996a8c55a30108bee62167fbce4cfd3484853d /widget | |
parent | 03472dfd4f8a472f38f03d332b4835580eb84489 (diff) | |
download | iced-be7d175388076cf24ca902a2d4cd457ce2a8e9ab.tar.gz iced-be7d175388076cf24ca902a2d4cd457ce2a8e9ab.tar.bz2 iced-be7d175388076cf24ca902a2d4cd457ce2a8e9ab.zip |
Remove cursor snapping hack in `text_editor`
The `quad` shader now properly takes care of
snapping lines to the pixel grid.
Diffstat (limited to 'widget')
-rw-r--r-- | widget/src/text_editor.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/widget/src/text_editor.rs b/widget/src/text_editor.rs index 9e8479fc..32537aff 100644 --- a/widget/src/text_editor.rs +++ b/widget/src/text_editor.rs @@ -823,7 +823,7 @@ where renderer.fill_quad( renderer::Quad { bounds: Rectangle { - x: clipped_cursor.x.floor(), + x: clipped_cursor.x, y: clipped_cursor.y, width: clipped_cursor.width, height: clipped_cursor.height, |