misc fixes

This commit is contained in:
Nova
2023-03-08 02:03:28 -05:00
parent 1c90ed98cf
commit d5728eeccc
4 changed files with 11 additions and 5 deletions

View File

@@ -218,7 +218,13 @@ impl Button {
}
impl RootHandler for Button {
fn frame(&mut self, info: FrameInfo) {
self.touch_plane.update();
self.grabbable.update(&info);
if self.grabbable.grab_action().actor_started() {
let _ = self.touch_plane.set_enabled(false);
}
if self.grabbable.grab_action().actor_stopped() {
let _ = self.touch_plane.set_enabled(true);
}
self.touch_plane.update();
}
}