* fix for longAction

This commit is contained in:
ad
2018-04-27 19:17:19 +03:00
parent cf5d8bf546
commit 55dc551516
+2 -2
View File
@@ -72,10 +72,10 @@ class CustomButtonTouchBarItem: NSCustomTouchBarItem, NSGestureRecognizerDelegat
case .began: case .began:
if self.longTapClosure != nil { if self.longTapClosure != nil {
hf.tap(strong: 2) hf.tap(strong: 2)
self.tapClosure() self.longTapClosure()
} else { } else {
hf.tap(strong: 6) hf.tap(strong: 6)
self.longTapClosure() self.tapClosure()
print("long click") print("long click")
} }
break break