Skip to content

Commit

Permalink
fix(dragHandle): fix drag handles on firefox
Browse files Browse the repository at this point in the history
Closes #54
  • Loading branch information
Matt Lewis committed Jun 10, 2017
1 parent 1ba7cc9 commit 1d15bb4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/resizeHandle.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@ export class ResizeHandle implements OnDestroy {
/**
* @private
*/
@HostListener('touchstart', ['$event.touches[0].clientX', '$event.touches[0].clientY'])
@HostListener('mousedown', ['$event.clientX', '$event.clientY'])
onMousedown(mouseX: number, mouseY: number): void {
@HostListener('touchstart', ['$event', '$event.touches[0].clientX', '$event.touches[0].clientY'])
@HostListener('mousedown', ['$event', '$event.clientX', '$event.clientY'])
onMousedown(event: any, mouseX: number, mouseY: number): void {
event.preventDefault();
this.zone.runOutsideAngular(() => {
if (!this.eventListeners.touchmove) {
this.eventListeners.touchmove = this.renderer.listen(this.element.nativeElement, 'touchmove', (event: any) => {
Expand Down

0 comments on commit 1d15bb4

Please sign in to comment.