Skip to content

Commit 3a20d79

Browse files
committed
refactor: isElView in story player
1 parent cc59a78 commit 3a20d79

File tree

1 file changed

+1
-1
lines changed
  • frontend/src/app/pages/DashBoardPage/utils

1 file changed

+1
-1
lines changed

frontend/src/app/pages/DashBoardPage/utils/board.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ export const isElView = el => {
220220
// bottom 元素底部端到可见区域顶端的距离
221221
var viewHeight = window.innerHeight || document.documentElement.clientHeight; // 浏览器可见区域高度。
222222

223-
if (top < viewHeight && bottom > 0) {
223+
if (top <= viewHeight && bottom >= 0) {
224224
bool = true;
225225
} else if (top >= viewHeight || bottom <= 0) {
226226
bool = false;

0 commit comments

Comments
 (0)