diff options
| author | alex-ds13 <145657253+alex-ds13@users.noreply.github.com> | 2025-11-25 14:42:06 +0000 |
|---|---|---|
| committer | Polesznyák Márk <contact@pml68.dev> | 2026-02-05 14:36:14 +0100 |
| commit | c60d0d9e6d46e7993578e94f09a2e7919586eb3b (patch) | |
| tree | 5a1f2e398a52cbc046927abae6faeed9024d33e0 /examples/name | |
| parent | chore: bump version (diff) | |
| download | iced_selection-c60d0d9e6d46e7993578e94f09a2e7919586eb3b.tar.gz | |
feat: correct selection on wrapped lines and allow mouse drag out of bounds
Diffstat (limited to '')
| -rw-r--r-- | examples/name/src/main.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/name/src/main.rs b/examples/name/src/main.rs index 9bf4b72..2e2582c 100644 --- a/examples/name/src/main.rs +++ b/examples/name/src/main.rs @@ -1,4 +1,3 @@ -use iced::advanced::text::Wrapping; use iced::widget::operation::focus_next; use iced::widget::{center, column, text_editor}; use iced::{Center, Element, Task}; @@ -41,7 +40,7 @@ impl State { fn view(&self) -> Element<'_, Message> { center( column![ - text!("Hello {}", &self.name).wrapping(Wrapping::None), + text!("Hello {}", &self.name), text_editor(&self.content).on_action(Message::UpdateText) ] .spacing(10) |
