From 67c00af69821eb4fe4710aa3219faf1dbb6ed55a Mon Sep 17 00:00:00 2001 From: Miroito Date: Sat, 3 Sep 2022 09:49:00 +0200 Subject: [PATCH] Revert awkward feature to scroll in Selection mode --- frontend/pages/recipe/_slug/ocr-editor.vue | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/frontend/pages/recipe/_slug/ocr-editor.vue b/frontend/pages/recipe/_slug/ocr-editor.vue index f5323b8b8c3..0a3aa28c1c9 100644 --- a/frontend/pages/recipe/_slug/ocr-editor.vue +++ b/frontend/pages/recipe/_slug/ocr-editor.vue @@ -721,19 +721,6 @@ export default defineComponent({ if (state.isImageSmallerThanCanvas) return; if (state.canvasRect === null || state.canvas === null || state.ctx === null) return; - if (state.canvasMode === "selection") { - event.preventDefault(); - updateMousePos(event); - const m = Math.sign(event.deltaY); - state.imagePosition.dy = state.imagePosition.dy + m * state.imagePosition.dHeight * scrollSensitivity; - keepImageInCanvas(); - updateImageScale(); - - state.ctx.fillStyle = "rgb(255, 255, 255)"; - state.ctx.fillRect(0, 0, state.canvas.width, state.canvas.height); - drawImage(state.ctx); - } - if (state.canvasMode === "panAndZoom") { event.preventDefault();