From 787e7bcdf04a08b926e61340460969a43a4f0b2a Mon Sep 17 00:00:00 2001 From: Boris Sekachev <boris.sekachev@yandex.ru> Date: Thu, 6 Feb 2020 14:17:31 +0300 Subject: [PATCH] Mousewheel on draw --- cvat-canvas/src/typescript/canvasView.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cvat-canvas/src/typescript/canvasView.ts b/cvat-canvas/src/typescript/canvasView.ts index 9465906ce7a2..791a26186ab0 100644 --- a/cvat-canvas/src/typescript/canvasView.ts +++ b/cvat-canvas/src/typescript/canvasView.ts @@ -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();