From 1784b245d0494243cf52b583d9e4a9ecbe95b935 Mon Sep 17 00:00:00 2001 From: esterTion Date: Fri, 6 Mar 2020 00:34:14 +0800 Subject: [PATCH] reduce long press duration --- Brokenithm-iOS/ViewController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Brokenithm-iOS/ViewController.m b/Brokenithm-iOS/ViewController.m index 6c5c3a4..fa0867c 100644 --- a/Brokenithm-iOS/ViewController.m +++ b/Brokenithm-iOS/ViewController.m @@ -82,7 +82,7 @@ openCloseBtn.font = [UIFont systemFontOfSize:30]; UITapGestureRecognizer *openCloseTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(closeFunc)]; UILongPressGestureRecognizer *openCloseHold = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(openOrCloseFunc)]; - openCloseHold.minimumPressDuration = 2; + openCloseHold.minimumPressDuration = 1; [openCloseBtnBorder addGestureRecognizer:openCloseTap]; [openCloseBtnBorder addGestureRecognizer:openCloseHold]; [openCloseBtnBorder addSubview:openCloseBtn];