Merge pull request #1098 from cmot17/master

Fix issue with text selection in text_input widget
This commit is contained in:
Héctor Ramón 2021-10-25 16:59:10 +07:00 committed by GitHub
commit 8a2a7f7e21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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