Skip to content

Commit

Permalink
check scrollY in getVisibleItems (#1230)
Browse files Browse the repository at this point in the history
* scroll y in visible items

* 0
  • Loading branch information
IzaacAyelin authored May 12, 2024
1 parent 009fa67 commit 15675ac
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 > 0 ||
isPreviewMode() ||
this.props.activeIndex > 0
) {
Expand Down

0 comments on commit 15675ac

Please sign in to comment.