Explorar o código

iOS 7 library long touch: minor tweaks after device tests

Felix Paul Kühne %!s(int64=11) %!d(string=hai) anos
pai
achega
eae7beffa1
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      AspenProject/VLCPlaylistViewController.m

+ 2 - 1
AspenProject/VLCPlaylistViewController.m

@@ -347,7 +347,7 @@
     CGRect frame = cell.frame;
     if (frame.size.height > 90.)
         frame.size.height = 90.;
-    else
+    else if (recognizer.state == UIGestureRecognizerStateBegan)
         frame.size.height = 180;
 
     void (^animationBlock)() = ^() {
@@ -356,6 +356,7 @@
 
     void (^completionBlock)(BOOL finished) = ^(BOOL finished) {
         cell.frame = frame;
+        [self.tableView scrollToRowAtIndexPath:path atScrollPosition:UITableViewScrollPositionNone animated:YES];
     };
 
     NSTimeInterval animationDuration = .2;