reduce long press duration

master
esterTion 2020-03-06 00:34:14 +08:00
parent 4ddaac9e7e
commit 1784b245d0
1 changed files with 1 additions and 1 deletions

View File

@ -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];