From e9a9d153ee87a38a9678adb73626fc65ab66a1dd Mon Sep 17 00:00:00 2001 From: Kai Azim Date: Sun, 14 Jul 2024 01:46:41 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20Fix=20erratic=20haptic=20feedbac?= =?UTF-8?q?k=20on=20trackpad?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Loop/Managers/LoopManager.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Loop/Managers/LoopManager.swift b/Loop/Managers/LoopManager.swift index 48570f78..0ba670f1 100644 --- a/Loop/Managers/LoopManager.swift +++ b/Loop/Managers/LoopManager.swift @@ -325,6 +325,10 @@ private extension LoopManager { disableHapticFeedback: Bool = false, canAdvanceCycle: Bool = true ) { + // This will allow us to compare different window actions without needing to consider different keybinds/custom names/ids. + // This is useful when the radial menu and keybinds have the same set of cycle actions, so we don't need to worry about not having a keybind. + var newAction = newAction.stripNonResizingProperties() + guard currentAction != newAction || newAction.willManipulateExistingWindowFrame, isLoopActive, @@ -333,10 +337,6 @@ private extension LoopManager { return } - // This will allow us to compare different window actions without needing to consider different keybinds/custom names/ids. - // This is useful when the radial menu and keybinds have the same set of cycle actions, so we don't need to worry about not having a keybind. - var newAction = newAction.stripNonResizingProperties() - if newAction.direction == .cycle { parentCycleAction = newAction