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