Skip to content

Commit 15a04db

Browse files
committed
Add missing absolute value
1 parent 63d4365 commit 15a04db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lighthouse-protocol/src/input/orientation_event.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ impl OrientationEvent {
2727
let Some(gamma) = self.gamma else { return None };
2828

2929
let deadzone_radius: f64 = 10.0;
30-
if beta.max(gamma) < deadzone_radius {
30+
if beta.abs().max(gamma.abs()) < deadzone_radius {
3131
return None;
3232
}
3333

0 commit comments

Comments
 (0)