Skip to content

Commit

Permalink
Merge pull request #34 from halfrost/search_occur_bug
Browse files Browse the repository at this point in the history
解决点击了搜索按钮导致个别页面闪动的情况
  • Loading branch information
halfrost committed Jul 27, 2020
2 parents b4730bc + ca2044e commit d1adc9a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/js/app.bundle.min.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions assets/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,11 @@
if (isFixed) {
$('body').css("position","fixed");
$('body').css("top", -top+'px');
$('body').css("width", "100%");
} else {
$('body').css("position","");
$('body').css("top","");
$('body').css("width", "");
window.scrollTo(0, top); // 回到原先的top
}
}
Expand Down
2 changes: 1 addition & 1 deletion build/assets/js/app.bundle.min.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions build/assets/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,11 @@
if (isFixed) {
$('body').css("position","fixed");
$('body').css("top", -top+'px');
$('body').css("width", "100%");
} else {
$('body').css("position","");
$('body').css("top","");
$('body').css("width", "");
window.scrollTo(0, top); // 回到原先的top
}
}
Expand Down
Binary file modified dist/advant.zip
Binary file not shown.

0 comments on commit d1adc9a

Please sign in to comment.