Browse Source

iOS 7 library long touch: minor tweaks after device tests

Felix Paul Kühne 11 years ago
parent
commit
eae7beffa1
1 changed files with 2 additions and 1 deletions
  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;