aboutsummaryrefslogtreecommitdiff
path: root/examples/name/src
diff options
context:
space:
mode:
authoralex-ds13 <145657253+alex-ds13@users.noreply.github.com>2025-11-25 14:42:06 +0000
committerPolesznyák Márk <contact@pml68.dev>2026-02-05 14:36:14 +0100
commitc60d0d9e6d46e7993578e94f09a2e7919586eb3b (patch)
tree5a1f2e398a52cbc046927abae6faeed9024d33e0 /examples/name/src
parentchore: bump version (diff)
downloadiced_selection-c60d0d9e6d46e7993578e94f09a2e7919586eb3b.tar.gz
feat: correct selection on wrapped lines and allow mouse drag out of bounds
Diffstat (limited to 'examples/name/src')
-rw-r--r--examples/name/src/main.rs3
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)