We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b140a08 commit 552d037Copy full SHA for 552d037
ts/WoltLabSuite/Core/Component/Image/Cropper.ts
@@ -173,10 +173,10 @@ abstract class ImageCropper {
173
174
const cropperImageRect = this.cropperImage!.getBoundingClientRect();
175
const maxSelection: Selection = {
176
- x: cropperImageRect.left - cropperCanvasRect.left,
177
- y: cropperImageRect.top - cropperCanvasRect.top,
178
- width: cropperImageRect.width,
179
- 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),
180
};
181
182
if (!inSelection(selection, maxSelection)) {
0 commit comments