Commit 69555f7b authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

Make sure that the user can still toggle playback control UI elements if gestures are disabled

parent c20716e1
......@@ -779,9 +779,6 @@
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch
{
if (!_swipeGesturesEnabled)
return NO;
if (touch.view != self.view)
return NO;
......@@ -790,9 +787,6 @@
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer
{
if (!_swipeGesturesEnabled)
return NO;
return YES;
}
......@@ -1114,6 +1108,9 @@
- (void)tapRecognized
{
if (!_swipeGesturesEnabled)
return;
if ([_mediaPlayer isPlaying]) {
[_listPlayer pause];
[self.statusLabel showStatusMessage:@" ▌▌"];
......@@ -1155,6 +1152,9 @@
- (void)panRecognized:(UIPanGestureRecognizer*)panRecognizer
{
if (!_swipeGesturesEnabled)
return;
CGFloat panDirectionX = [panRecognizer velocityInView:self.view].x;
CGFloat panDirectionY = [panRecognizer velocityInView:self.view].y;
......@@ -1199,6 +1199,9 @@
- (void)swipeRecognized:(UISwipeGestureRecognizer*)swipeRecognizer
{
if (!_swipeGesturesEnabled)
return;
NSString * hudString = @" ";
if (swipeRecognizer.direction == UISwipeGestureRecognizerDirectionRight) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment