Skip to content

Commit c321d18

Browse files
committed
Fix issue with text selection in text_input widget
1 parent 20177e4 commit c321d18

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ pkg/
33
**/*.rs.bk
44
Cargo.lock
55
.cargo/
6+
/.idea/

native/src/widget/text_input.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,6 @@ where
335335
let text_layout = layout.children().next().unwrap();
336336
let target = position.x - text_layout.bounds().x;
337337

338-
if target > 0.0 {
339338
let value = if self.is_secure {
340339
self.value.secure()
341340
} else {
@@ -357,7 +356,6 @@ where
357356
self.state.cursor.start(&value),
358357
position,
359358
);
360-
}
361359

362360
return event::Status::Captured;
363361
}

0 commit comments

Comments
 (0)