Skip to content

Commit

Permalink
feat(element-selection): pass zoom events down to image when selectio…
Browse files Browse the repository at this point in the history
…n is not zoomable

ref #1182
  • Loading branch information
fengyuanchen committed Jun 28, 2024
1 parent 08368f1 commit 3aa7ff4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/element-image/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ export default class CropperImage extends CropperElement {
this.$getTagNameOf(CROPPER_SELECTION),
);

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

this.$zoom(
Expand Down

0 comments on commit 3aa7ff4

Please sign in to comment.