diff --git a/wayvr/src/backend/openxr/input.rs b/wayvr/src/backend/openxr/input.rs index 72b67616..b9d3880a 100644 --- a/wayvr/src/backend/openxr/input.rs +++ b/wayvr/src/backend/openxr/input.rs @@ -139,9 +139,9 @@ impl CustomClickAction { pub fn state(&mut self, before: bool, state: &XrState) -> anyhow::Result { let threshold = if before { - self.threshold[1] - } else { self.threshold[0] + } else { + self.threshold[1] }; Ok(self.single.check(&state.session, threshold)?