Skip to content

Commit

Permalink
change: keep fullViewPlane scrollTop no changed;
Browse files Browse the repository at this point in the history
  • Loading branch information
MapoMagpie committed Jan 27, 2024
1 parent cc5ca4a commit 1b1d579
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion dist/eh-view-enhance.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -2931,7 +2931,6 @@ duration 0.04`).join("\n");
}
let bodyOverflow = document.body.style.overflow;
function showFullViewPlane() {
HTML.fullViewPlane.scroll(0, 0);
HTML.fullViewPlane.classList.remove("collapse_full_view");
HTML.fullViewPlane.focus();
document.body.style.overflow = "hidden";
Expand Down
2 changes: 1 addition & 1 deletion src/ui/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export function initEvents(HTML: Elements, BIFM: BigImageFrameManager, IFQ: IMGF

let bodyOverflow = document.body.style.overflow;
function showFullViewPlane() {
HTML.fullViewPlane.scroll(0, 0); //否则加载会触发滚动事件
// HTML.fullViewPlane.scroll(0, 0); //否则加载会触发滚动事件
HTML.fullViewPlane.classList.remove("collapse_full_view");
HTML.fullViewPlane.focus();
document.body.style.overflow = "hidden";
Expand Down

0 comments on commit 1b1d579

Please sign in to comment.