BDKCollectionIndexView icon indicating copy to clipboard operation
BDKCollectionIndexView copied to clipboard

BackgroundView stays highlighted even when gesture gets cancelled

Open mickeyl opened this issue 10 years ago • 0 comments

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

mickeyl avatar Jan 16 '16 14:01 mickeyl