1
0
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:
bobrosoft 2019-08-06 16:51:40 +02:00
parent 2d64c091e3
commit 168b629810

View File

@ -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)