Skip to content

Commit 3aa7ff4

Browse files
committed
feat(element-selection): pass zoom events down to image when selection is not zoomable
ref #1182
1 parent 08368f1 commit 3aa7ff4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/element-image/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ export default class CropperImage extends CropperElement {
264264
this.$getTagNameOf(CROPPER_SELECTION),
265265
);
266266

267-
if (!$selection || $selection.dynamic) {
267+
if (!$selection || !$selection.zoomable || $selection.dynamic) {
268268
const { x, y } = this.getBoundingClientRect();
269269

270270
this.$zoom(

0 commit comments

Comments
 (0)