diff --git a/renderer/native/ios/renderer/component/listview/NativeRenderBaseListView.mm b/renderer/native/ios/renderer/component/listview/NativeRenderBaseListView.mm index 5e12866e3b3..2c617ce7cd2 100644 --- a/renderer/native/ios/renderer/component/listview/NativeRenderBaseListView.mm +++ b/renderer/native/ios/renderer/component/listview/NativeRenderBaseListView.mm @@ -522,6 +522,13 @@ - (void)setHorizontal:(BOOL)horizontal { UICollectionViewFlowLayout *layout = (UICollectionViewFlowLayout *)self.collectionView.collectionViewLayout; layout.scrollDirection = horizontal ? UICollectionViewScrollDirectionHorizontal : UICollectionViewScrollDirectionVertical; [self.collectionView.collectionViewLayout invalidateLayout]; + if (horizontal) { + [self.collectionView setAlwaysBounceHorizontal:YES]; + [self.collectionView setAlwaysBounceVertical:NO]; + } else { + [self.collectionView setAlwaysBounceVertical:YES]; + [self.collectionView setAlwaysBounceHorizontal:NO]; + } } } diff --git a/renderer/native/ios/renderer/component/waterfalllist/NativeRenderWaterfallView.mm b/renderer/native/ios/renderer/component/waterfalllist/NativeRenderWaterfallView.mm index 3cc9d27a35a..f0875ee1a05 100644 --- a/renderer/native/ios/renderer/component/waterfalllist/NativeRenderWaterfallView.mm +++ b/renderer/native/ios/renderer/component/waterfalllist/NativeRenderWaterfallView.mm @@ -85,6 +85,7 @@ - (void)initCollectionView { collectionView.dataSource = self; collectionView.delegate = self; collectionView.layoutDelegate = self; + collectionView.alwaysBounceVertical = YES; collectionView.backgroundColor = [UIColor clearColor]; _collectionView = collectionView; [self registerCells];