mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 13:32:54 +08:00
fix(app): setScrollDisabled() is a private method
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user