mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
chore(toggle): revert gesture changes from outdated branch
This commit is contained in:
@ -94,7 +94,7 @@ export class Toggle implements CheckboxInput {
|
|||||||
'interactive-disabled': this.disabled,
|
'interactive-disabled': this.disabled,
|
||||||
});
|
});
|
||||||
if (this.gesture) {
|
if (this.gesture) {
|
||||||
this.gesture.disabled = this.disabled;
|
this.gesture.setDisabled(this.disabled);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -112,11 +112,11 @@ export class Toggle implements CheckboxInput {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.gesture = (await import('../../utils/gesture/gesture')).create({
|
this.gesture = (await import('../../utils/gesture/gesture')).createGesture({
|
||||||
el: this.el,
|
el: this.el,
|
||||||
queue: this.queue,
|
queue: this.queue,
|
||||||
gestureName: 'toggle',
|
gestureName: 'toggle',
|
||||||
gesturePriority: 30,
|
gesturePriority: 100,
|
||||||
threshold: 0,
|
threshold: 0,
|
||||||
onStart: this.onDragStart.bind(this),
|
onStart: this.onDragStart.bind(this),
|
||||||
onMove: this.onDragMove.bind(this),
|
onMove: this.onDragMove.bind(this),
|
||||||
|
Reference in New Issue
Block a user