Skip to content

Commit

Permalink
Mousewheel on draw
Browse files Browse the repository at this point in the history
  • Loading branch information
bsekachev committed Feb 6, 2020
1 parent d20371b commit 787e7bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cvat-canvas/src/typescript/canvasView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ export class CanvasViewImpl implements CanvasView, Listener {
if ([1, 2].includes(event.which)) {
if ([Mode.DRAG_CANVAS, Mode.IDLE].includes(this.mode)) {
self.controller.enableDrag(event.clientX, event.clientY);
} else if (this.mode === Mode.ZOOM_CANVAS && event.which === 2) {
} else if ([Mode.ZOOM_CANVAS, Mode.DRAW].includes(this.mode) && event.which === 2) {
self.controller.enableDrag(event.clientX, event.clientY);
}
event.preventDefault();
Expand Down

0 comments on commit 787e7bc

Please sign in to comment.