Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BackgroundView stays highlighted even when gesture gets cancelled #30

Open
mickeyl opened this issue Jan 16, 2016 · 0 comments
Open

BackgroundView stays highlighted even when gesture gets cancelled #30

mickeyl opened this issue Jan 16, 2016 · 0 comments

Comments

@mickeyl
Copy link

mickeyl commented Jan 16, 2016

This is a problem, e.g. when using the new multitasking feature on the iPad Pro. The proper fix seems to me:

 - (void)handleGesture:(UIGestureRecognizer *)recognizer {
-    [self setBackgroundVisibility:!(recognizer.state == UIGestureRecognizerStateEnded)];
+    [self setBackgroundVisibility:!(recognizer.state == UIGestureRecognizerStateEnded || recognizer.state == UIGestureRecognizerStateCancelled)];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant