Skip to content

Commit

Permalink
fix(range): add mouse listeners to document
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley committed Aug 4, 2016
1 parent 2cb61d3 commit 267ced6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/ui-event-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ export class PointerEvents {
return;
}
if (!this.rmMouseMove) {
this.rmMouseMove = listenEvent(window, 'mousemove', this.zone, this.option, this.pointerMove);
this.rmMouseMove = listenEvent(document, 'mousemove', this.zone, this.option, this.pointerMove);
}
if (!this.rmMouseUp) {
this.rmMouseUp = listenEvent(window, 'mouseup', this.zone, this.option, this.bindMouseUp);
this.rmMouseUp = listenEvent(document, 'mouseup', this.zone, this.option, this.bindMouseUp);
}
}

Expand Down

0 comments on commit 267ced6

Please sign in to comment.