Skip to content
This repository was archived by the owner on Aug 9, 2023. It is now read-only.

Commit 2d76108

Browse files
committed
build
1 parent afd7249 commit 2d76108

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

build/asscroll.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,7 +1311,10 @@ class Controller {
13111311
this.iframes = this.containerElement.querySelectorAll('iframe');
13121312

13131313
if ((store_default()).isTouch && this.options.touchScrollType !== 'transform') {
1314-
store_default().body.style.removeProperty('height');
1314+
if (this.options.touchScrollType === 'scrollTop') {
1315+
this.containerElement.style.removeProperty('overflow');
1316+
}
1317+
13151318
this.maxScroll = -this.containerElement.scrollHeight;
13161319

13171320
if (reset) {
@@ -1350,7 +1353,12 @@ class Controller {
13501353
src_e.off(Events.WHEEL, this.onScroll);
13511354
src_e.off(Events.INTERNALSCROLL, this.onScroll);
13521355
this.prevScrollPos = this.targetPos;
1353-
(store_default()).body.style.height = '0px';
1356+
1357+
if ((store_default()).isTouch && this.options.touchScrollType === 'scrollTop') {
1358+
this.containerElement.style.overflow = 'hidden';
1359+
} else {
1360+
(store_default()).body.style.height = '0px';
1361+
}
13541362
}
13551363

13561364
clamp() {

0 commit comments

Comments
 (0)