mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
perf(events): ionDrag events are not zone wrapped
This commit is contained in:
@@ -404,7 +404,7 @@ export class ItemSliding {
|
||||
this.item.setElementStyle(CSS.transform, `translate3d(${-openAmount}px,0,0)`);
|
||||
let ionDrag = this.ionDrag;
|
||||
if (ionDrag.observers.length > 0) {
|
||||
this._zone.run(ionDrag.emit.bind(ionDrag, this));
|
||||
ionDrag.emit(this);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -471,7 +471,7 @@ export class Menu {
|
||||
|
||||
let ionDrag = this.ionDrag;
|
||||
if (ionDrag.observers.length > 0) {
|
||||
this._zone.run(ionDrag.emit.bind(ionDrag, stepValue));
|
||||
ionDrag.emit(stepValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user