mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
refactor(gesture): update Gesture API to latest (#19671)
This commit is contained in:
@ -113,7 +113,7 @@ export class Range implements ComponentInterface {
|
||||
@Watch('disabled')
|
||||
protected disabledChanged() {
|
||||
if (this.gesture) {
|
||||
this.gesture.setDisabled(this.disabled);
|
||||
this.gesture.enable(!this.disabled);
|
||||
}
|
||||
this.emitStyle();
|
||||
}
|
||||
@ -194,7 +194,7 @@ export class Range implements ComponentInterface {
|
||||
onMove: ev => this.onMove(ev),
|
||||
onEnd: ev => this.onEnd(ev),
|
||||
});
|
||||
this.gesture.setDisabled(this.disabled);
|
||||
this.gesture.enable(!this.disabled);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user