Avoid PaneGrid unfocus when cursor is unavailable
This commit is contained in:
parent
a225a218e0
commit
a165eddd75
2 changed files with 5 additions and 1 deletions
|
|
@ -496,7 +496,10 @@ where
|
|||
}
|
||||
}
|
||||
} else {
|
||||
self.state.unfocus();
|
||||
// TODO: Encode cursor availability in the type system
|
||||
if cursor_position.x > 0.0 && cursor_position.y > 0.0 {
|
||||
self.state.unfocus();
|
||||
}
|
||||
}
|
||||
}
|
||||
mouse::Event::ButtonReleased(mouse::Button::Left) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue