From 983dc4d4fd72771ccff5f315f8085fddce8bfca0 Mon Sep 17 00:00:00 2001 From: Cyperghost Date: Thu, 5 Dec 2024 11:48:58 +0100 Subject: [PATCH] Run `tsc` --- .../files/js/WoltLabSuite/Core/Component/Image/Cropper.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Component/Image/Cropper.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Component/Image/Cropper.js index 86794834c6..7c87962d7e 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Component/Image/Cropper.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Component/Image/Cropper.js @@ -135,10 +135,10 @@ define(["require", "exports", "tslib", "WoltLabSuite/Core/Image/Resizer", "WoltL const selection = event.detail; const cropperImageRect = this.cropperImage.getBoundingClientRect(); const maxSelection = { - x: cropperImageRect.left - cropperCanvasRect.left, - y: cropperImageRect.top - cropperCanvasRect.top, - width: cropperImageRect.width, - height: cropperImageRect.height, + x: Math.round(cropperImageRect.left - cropperCanvasRect.left), + y: Math.round(cropperImageRect.top - cropperCanvasRect.top), + width: Math.round(cropperImageRect.width), + height: Math.round(cropperImageRect.height), }; if (!inSelection(selection, maxSelection)) { event.preventDefault(); -- 2.20.1