diff --git a/src/components/app/app.ts b/src/components/app/app.ts index cdd3a67273..ccea638f0b 100644 --- a/src/components/app/app.ts +++ b/src/components/app/app.ts @@ -93,6 +93,7 @@ export class App { } /** + * @private * Sets if the app is currently enabled or not, meaning if it's * available to accept new user commands. For example, this is set to `false` * while views transition, a modal slides up, an action-sheet @@ -119,11 +120,12 @@ export class App { } /** + * @private * Toggles whether an application can be scrolled * @param {boolean} disableScroll when set to `false`, the application's * scrolling is enabled. When set to `true`, scrolling is disabled. */ - setScrollDisabled(disableScroll: boolean) { + _setDisableScroll(disableScroll: boolean) { if (this._disableScrollAssist) { this._appRoot._disableScroll(disableScroll); } diff --git a/src/gestures/gesture-controller.ts b/src/gestures/gesture-controller.ts index 647b4639f5..1e5b3d749b 100644 --- a/src/gestures/gesture-controller.ts +++ b/src/gestures/gesture-controller.ts @@ -150,7 +150,7 @@ export class GestureController { this.disabledScroll.add(id); if (this._app && isEnabled && this.isScrollDisabled()) { console.debug('GestureController: Disabling scrolling'); - this._app.setScrollDisabled(true); + this._app._setDisableScroll(true); } } @@ -159,7 +159,7 @@ export class GestureController { this.disabledScroll.delete(id); if (this._app && isDisabled && !this.isScrollDisabled()) { console.debug('GestureController: Enabling scrolling'); - this._app.setScrollDisabled(false); + this._app._setDisableScroll(false); } }