Skip to content

Commit

Permalink
🐞 Fix erratic haptic feedback on trackpad
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKai77 committed Jul 14, 2024
1 parent f2d5d03 commit e9a9d15
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Loop/Managers/LoopManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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

Expand Down

0 comments on commit e9a9d15

Please sign in to comment.