Skip to content

Commit

Permalink
perf(events): ionDrag events are not zone wrapped
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Nov 26, 2016
1 parent f0c4a9e commit a722107
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/item/item-sliding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/menu/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit a722107

Please sign in to comment.