Skip to content

BackgroundView stays highlighted even when gesture gets cancelled #30

@mickeyl

Description

@mickeyl

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions