mirror of
https://github.com/Toxblh/MTMR.git
synced 2026-01-10 00:58:37 +00:00
CustomButtonTouchBarItem: fix time interval constant
This commit is contained in:
parent
2d64c091e3
commit
168b629810
@ -190,7 +190,7 @@ class LongPressGestureRecognizer: NSPressGestureRecognizer {
|
||||
|
||||
let touches = event.touches(for: self.view!)
|
||||
if touches.count == 1 { // to prevent it for built-in two/three-finger gestures
|
||||
timer = Timer.scheduledTimer(timeInterval: 0.25, target: self, selector: #selector(self.onTimer), userInfo: nil, repeats: false)
|
||||
timer = Timer.scheduledTimer(timeInterval: recognizeTimeout, target: self, selector: #selector(self.onTimer), userInfo: nil, repeats: false)
|
||||
}
|
||||
|
||||
super.touchesBegan(with: event)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user