Fix issue with text selection in text_input widget

This commit is contained in:
cmot17 2021-10-24 08:57:14 -04:00 committed by Héctor Ramón Jiménez
parent 20177e423c
commit b098f06a29
No known key found for this signature in database
GPG key ID: 140CC052C94F138E

View file

@ -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;
} }