fix(input): dropped input handlers properly release methods

This commit is contained in:
Nova
2025-04-07 09:50:34 -07:00
parent 3e534c1f6d
commit 5b53fb497e
5 changed files with 15 additions and 13 deletions

View File

@@ -140,7 +140,7 @@ impl SkHand {
hand.elbow = None;
let hand_color = if self.capture_manager.capture.is_none() {
let hand_color = if self.capture_manager.capture.upgrade().is_none() {
Color128::new_rgb(1.0, 1.0, 1.0)
} else {
Color128::new_rgb(0.0, 1.0, 0.75)
@@ -174,7 +174,7 @@ impl SkHand {
.set_new_capture(&self.input, distance_calculator);
self.capture_manager.apply_capture(&self.input);
if self.capture_manager.capture.is_some() {
if self.capture_manager.capture.upgrade().is_some() {
return;
}