Skip to content

Commit

Permalink
fix: fix resizing via a drag handle
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Lewis committed Oct 29, 2016
1 parent c0b7a8e commit 5f7f468
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/resizable.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,9 @@ export class ResizeHandle {
/**
* @private
*/
@HostListener('mousemove', ['$event.clientX', '$event.clientY'])
private onMousemove(mouseX: number, mouseY: number): void {
this.resizable.mousemove.next({mouseX, mouseY, edges: this.resizeEdges});
@HostListener('mousemove', ['$event'])
private onMousemove(event: MouseEvent): void {
this.resizable.mousemove.next({mouseX: event.clientX, mouseY: event.clientY, edges: this.resizeEdges, event});
}

}
Expand Down

0 comments on commit 5f7f468

Please sign in to comment.