Skip to content

Commit

Permalink
fix(draggable): prevent text from being highlighted in firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Lewis committed Apr 14, 2017
1 parent 01c8647 commit 7d859c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/draggable.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ export class Draggable implements OnInit, OnChanges, OnDestroy {
.filter(() => this.canDrag())
.flatMap((pointerDownEvent: PointerEvent) => {

pointerDownEvent.event.preventDefault();

this.zone.run(() => {
this.dragStart.next({x: 0, y: 0});
});
Expand Down

0 comments on commit 7d859c1

Please sign in to comment.