Skip to content

Commit 3f93dbd

Browse files
committed
fix for hiding mirror, when image top scrollOffset is 0
1 parent 6f9b3b3 commit 3f93dbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parallax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@
213213
var overScroll = this.overScrollFix ? Parallax.overScroll : 0;
214214
var scrollBottom = scrollTop + Parallax.winHeight;
215215

216-
if (this.boxOffsetBottom > scrollTop && this.boxOffsetTop < scrollBottom) {
216+
if (this.boxOffsetBottom > scrollTop && this.boxOffsetTop <= scrollBottom) {
217217
this.visibility = 'visible';
218218
} else {
219219
this.visibility = 'hidden';

0 commit comments

Comments
 (0)