mutualmobile/MMSpreadsheetView

It is worth to disable bouncing

vkaramov opened this issue · 2 comments

- (UICollectionView *)setupCollectionViewWithGridLayout {
    MMGridLayout *layout = [[MMGridLayout alloc] init];
    UICollectionView *collectionView = [[UICollectionView alloc] initWithFrame:CGRectZero collectionViewLayout:layout];
// Add the following line
    collectionView.bounces = NO;
    return collectionView;
}

@vkaramov There is a bounces property on UIScrollView we could probably use.

According to the docs, "If the value of this property is YES, the scroll view bounces when it encounters a boundary of the content. Bouncing visually indicates that scrolling has reached an edge of the content. If the value is NO, scrolling stops immediately at the content boundary without bouncing. The default value is YES." So I'd want it to default to YES, but allow for changes.

Added bounces property to MMSpreadsheetView 0.0.2.