Rewrite CustomEdgeSwipeGestureRecognizer to fix unexpected session disconnect, and for future configuration

This commit is contained in:
True Zhuanjia
2024-05-14 23:05:58 +08:00
parent 6207d77349
commit 82de44df54
3 changed files with 40 additions and 38 deletions
@@ -133,8 +133,8 @@
#else
_exitSwipeRecognizer = [[CustomEdgeSwipeGestureRecognizer alloc] initWithTarget:self action:@selector(edgeSwiped)];
//_exitSwipeRecognizer.edges = UIRectEdgeLeft;
//_exitSwipeRecognizer.edges = UIRectEdgeLeft;
_exitSwipeRecognizer.edges = UIRectEdgeLeft;
_exitSwipeRecognizer.normalizedThresholdDistance = 0.5f;
_exitSwipeRecognizer.delaysTouchesBegan = NO;
_exitSwipeRecognizer.delaysTouchesEnded = NO;
[self.view addGestureRecognizer:_exitSwipeRecognizer];