From 55dc551516bda41d809003683c70c22a0d1d7695 Mon Sep 17 00:00:00 2001 From: ad Date: Fri, 27 Apr 2018 19:17:19 +0300 Subject: [PATCH] * fix for longAction --- MTMR/CustomButtonTouchBarItem.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MTMR/CustomButtonTouchBarItem.swift b/MTMR/CustomButtonTouchBarItem.swift index fcf5c80..636d3ce 100644 --- a/MTMR/CustomButtonTouchBarItem.swift +++ b/MTMR/CustomButtonTouchBarItem.swift @@ -72,10 +72,10 @@ class CustomButtonTouchBarItem: NSCustomTouchBarItem, NSGestureRecognizerDelegat case .began: if self.longTapClosure != nil { hf.tap(strong: 2) - self.tapClosure() + self.longTapClosure() } else { hf.tap(strong: 6) - self.longTapClosure() + self.tapClosure() print("long click") } break