bm-core-ui 2.10.2 → 2.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5888,6 +5888,10 @@ BMCollectionView.prototype = BMExtend(BM_COLLECTION_VIEW_USE_BMVIEW_SUBCLASS ? O
|
|
|
5888
5888
|
else if (options.horizontalGravity == BMCollectionViewScrollingGravityHorizontal.Right) {
|
|
5889
5889
|
offset.x = rect.origin.x + rect.size.width - this.frame.size.width;
|
|
5890
5890
|
}
|
|
5891
|
+
|
|
5892
|
+
// Make sure the offset doesn't exceed the available area
|
|
5893
|
+
offset.y = Math.min(Math.max(0, offset.y), this._size.height - this.frame.size.height);
|
|
5894
|
+
offset.x = Math.min(Math.max(0, offset.x), this._size.width - this.frame.size.width);
|
|
5891
5895
|
|
|
5892
5896
|
// Scroll to the offset point
|
|
5893
5897
|
if (options.animated) {
|