Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4cef15d

Browse files
committed
Fix check for isBodyOverflowing
1 parent1d59417 commit4cef15d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

‎src/components/modal/helpers/modal-manager.js‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,8 @@ const ModalManager = /*#__PURE__*/ Vue.extend({
139139
}
140140
},
141141
checkScrollbar(){
142-
// Determine if the body element is overflowing
143-
const{ left, right}=getBCR(document.body)
144-
this.isBodyOverflowing=left+right<window.innerWidth
142+
constoverflowStyle=getCS(document.body).overflowY
143+
this.isBodyOverflowing=(overflowStyle==='auto'||overflowStyle==='scroll')&&document.body.scrollHeight>document.body.clientHeight
145144
},
146145
setScrollbar(){
147146
constbody=document.body

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp