Skip to content

Commit 267ced6

Browse files
committed
fix(range): add mouse listeners to document
1 parent 2cb61d3 commit 267ced6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/util/ui-event-manager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ export class PointerEvents {
7070
return;
7171
}
7272
if (!this.rmMouseMove) {
73-
this.rmMouseMove = listenEvent(window, 'mousemove', this.zone, this.option, this.pointerMove);
73+
this.rmMouseMove = listenEvent(document, 'mousemove', this.zone, this.option, this.pointerMove);
7474
}
7575
if (!this.rmMouseUp) {
76-
this.rmMouseUp = listenEvent(window, 'mouseup', this.zone, this.option, this.bindMouseUp);
76+
this.rmMouseUp = listenEvent(document, 'mouseup', this.zone, this.option, this.bindMouseUp);
7777
}
7878
}
7979

0 commit comments

Comments
 (0)