CPTableView: remove custom scrolling now that it's handled in the CPDragServer + CPClipView

This commit is contained in:
cacaodev authored and Ross Boucher committed 2010-04-23 14:31:25 -07:00
1 parent f67580e2b2
commit e1ad4a2fce
1 file changed
+1 -8
+1 -8
View File
@@ -2874,14 +2874,7 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5;
[_dropOperationFeedbackView setFrame:rect];
[_dropOperationFeedbackView setCurrentRow:row];
[self addSubview:_dropOperationFeedbackView];
// FIXME : Maybe we should do this in a timer outside this method.
// Problem: we don't know when the scroll ends or when the next -draggingUpdated is called.
if (row > 0 && location.y - CGRectGetMinY(exposedClipRect) < _rowHeight)
[self scrollRowToVisible:row - 1];
else if (row < numberOfRows && CGRectGetMaxY(exposedClipRect) - location.y < _rowHeight)
[self scrollRowToVisible:row + 1];
return dragOperation;
}