prevent accidental side menu popup
parent
049407e1b5
commit
1af0d2ecf4
|
@ -353,7 +353,7 @@
|
|||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CODE_SIGN_IDENTITY = "Apple Development";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
CURRENT_PROJECT_VERSION = 10;
|
||||
CURRENT_PROJECT_VERSION = 11;
|
||||
DEVELOPMENT_TEAM = K9CP5766XY;
|
||||
INFOPLIST_FILE = "Brokenithm-iOS/Info.plist";
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
||||
|
@ -377,7 +377,7 @@
|
|||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CODE_SIGN_IDENTITY = "Apple Development";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
CURRENT_PROJECT_VERSION = 10;
|
||||
CURRENT_PROJECT_VERSION = 11;
|
||||
DEVELOPMENT_TEAM = K9CP5766XY;
|
||||
INFOPLIST_FILE = "Brokenithm-iOS/Info.plist";
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
BOOL invertAir;
|
||||
NSNumber *menuHoldDuration;
|
||||
UILongPressGestureRecognizer *openCloseHold;
|
||||
int touchCount;
|
||||
}
|
||||
@property UIView *airIOView;
|
||||
@property UIView *sliderIOView;
|
||||
|
|
|
@ -247,6 +247,7 @@
|
|||
}
|
||||
|
||||
-(void)openOrCloseFunc {
|
||||
if (self->touchCount > 1) return;
|
||||
if (funcViewOn) {
|
||||
[self closeFunc];
|
||||
} else {
|
||||
|
@ -296,6 +297,7 @@
|
|||
[server BroadcastData:io];
|
||||
}
|
||||
-(void)updateTouches:(UIEvent *)event {
|
||||
self->touchCount = event.allTouches.count;
|
||||
if (openCloseEventOnce) {
|
||||
if (event.allTouches.count == 1 && [event.allTouches anyObject].phase == UITouchPhaseEnded) {
|
||||
openCloseEventOnce = NO;
|
||||
|
|
Loading…
Reference in New Issue