mirror of
https://github.com/Toxblh/MTMR.git
synced 2026-01-11 09:28:38 +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!)
|
let touches = event.touches(for: self.view!)
|
||||||
if touches.count == 1 { // to prevent it for built-in two/three-finger gestures
|
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)
|
super.touchesBegan(with: event)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user