Fix issue with text selection in text_input widget
This commit is contained in:
parent
20177e423c
commit
b098f06a29
1 changed files with 19 additions and 21 deletions
|
|
@ -335,7 +335,6 @@ where
|
||||||
let text_layout = layout.children().next().unwrap();
|
let text_layout = layout.children().next().unwrap();
|
||||||
let target = position.x - text_layout.bounds().x;
|
let target = position.x - text_layout.bounds().x;
|
||||||
|
|
||||||
if target > 0.0 {
|
|
||||||
let value = if self.is_secure {
|
let value = if self.is_secure {
|
||||||
self.value.secure()
|
self.value.secure()
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -357,7 +356,6 @@ where
|
||||||
self.state.cursor.start(&value),
|
self.state.cursor.start(&value),
|
||||||
position,
|
position,
|
||||||
);
|
);
|
||||||
}
|
|
||||||
|
|
||||||
return event::Status::Captured;
|
return event::Status::Captured;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue