fix thresholds being backwards

This commit is contained in:
galister 2026-07-02 20:05:50 +09:00
parent c77e465343
commit a0c33bc744
1 changed files with 2 additions and 2 deletions

View File

@ -139,9 +139,9 @@ impl CustomClickAction {
pub fn state(&mut self, before: bool, state: &XrState) -> anyhow::Result<bool> {
let threshold = if before {
self.threshold[1]
} else {
self.threshold[0]
} else {
self.threshold[1]
};
Ok(self.single.check(&state.session, threshold)?