fix(datetime): fix gesture

This commit is contained in:
Manu Mtz.-Almeida
2018-08-02 23:15:19 +02:00
parent b69d01de26
commit e9fd184175
9 changed files with 198 additions and 303 deletions

View File

@ -41,7 +41,7 @@ export class Nav implements NavOutlet {
@Watch('swipeBackEnabled')
swipeBackEnabledChanged() {
if (this.gesture) {
this.gesture.disabled = !this.swipeBackEnabled;
this.gesture.setDisabled(!this.swipeBackEnabled);
}
}
@ -110,7 +110,7 @@ export class Nav implements NavOutlet {
async componentDidLoad() {
this.rootChanged();
this.gesture = (await import('../../utils/gesture/gesture')).create({
this.gesture = (await import('../../utils/gesture/gesture')).createGesture({
el: this.win.document.body,
queue: this.queue,
gestureName: 'goback-swipe',