fix(input): dropped input handlers properly release methods
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user