File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -887,7 +887,7 @@ export class CollectionView extends CollectionViewBase {
887887 }
888888 scrollViewDidScroll ( scrollView : UIScrollView ) : void {
889889 const offset = this . isHorizontal ( ) ? scrollView . contentOffset . x : scrollView . contentOffset . y ;
890- const size = this . isHorizontal ( ) ? scrollView . contentSize . width : scrollView . contentSize . height ;
890+ const size = this . isHorizontal ( ) ? scrollView . contentSize . width - scrollView . bounds . size . width : scrollView . contentSize . height - scrollView . bounds . size . height ;
891891 this . notify ( {
892892 object : this ,
893893 eventName : CollectionViewBase . scrollEvent ,
@@ -897,7 +897,7 @@ export class CollectionView extends CollectionViewBase {
897897 }
898898 scrollViewDidEndDecelerating ( scrollView : UIScrollView ) {
899899 const offset = this . isHorizontal ( ) ? scrollView . contentOffset . x : scrollView . contentOffset . y ;
900- const size = this . isHorizontal ( ) ? scrollView . contentSize . width : scrollView . contentSize . height ;
900+ const size = this . isHorizontal ( ) ? scrollView . contentSize . width - scrollView . bounds . size . width : scrollView . contentSize . height - scrollView . bounds . size . height ;
901901 this . notify ( {
902902 object : this ,
903903 eventName : CollectionViewBase . scrollEndEvent ,
You can’t perform that action at this time.
0 commit comments