mirror of
https://gitee.com/kekingcn/file-online-preview.git
synced 2025-04-05 17:37:49 +08:00
!94 fix: 移除checkImg全局index变量,防止变量污染引发问题
Merge pull request !94 from Frank Cheung/N/A
This commit is contained in:
commit
76043a5b46
@ -6,9 +6,10 @@ function isInSight(el) {
|
||||
return bound.top <= clientHeight + 100;
|
||||
}
|
||||
|
||||
var index = 0;
|
||||
|
||||
|
||||
function checkImgs() {
|
||||
var index = 0;
|
||||
var imgs = document.querySelectorAll('.my-photo');
|
||||
for (var i = index; i < imgs.length; i++) {
|
||||
if (isInSight(imgs[i])) {
|
||||
|
Loading…
Reference in New Issue
Block a user