From c60d0d9e6d46e7993578e94f09a2e7919586eb3b Mon Sep 17 00:00:00 2001 From: alex-ds13 <145657253+alex-ds13@users.noreply.github.com> Date: Tue, 25 Nov 2025 14:42:06 +0000 Subject: feat: correct selection on wrapped lines and allow mouse drag out of bounds --- examples/name/src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'examples/name') 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) -- cgit v1.2.3