From 792d5f7752db31ba251bc0b9d9980e169b6acb67 Mon Sep 17 00:00:00 2001 From: IzaacAyelin Date: Sun, 12 May 2024 15:24:52 +0300 Subject: [PATCH] scroll y in visible items --- .../src/components/gallery/proGallery/galleryContainer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/gallery/src/components/gallery/proGallery/galleryContainer.js b/packages/gallery/src/components/gallery/proGallery/galleryContainer.js index f5bcc07f0..b59fbaad5 100644 --- a/packages/gallery/src/components/gallery/proGallery/galleryContainer.js +++ b/packages/gallery/src/components/gallery/proGallery/galleryContainer.js @@ -308,7 +308,8 @@ export class GalleryContainer extends React.Component { isSEOMode() || isEditMode() || gotFirstScrollEvent || - scrollY > 0 || + scrollY > 0 || // Can be an inner container with its own scroll + window.scrollY || isPreviewMode() || this.props.activeIndex > 0 ) {