Skip to content

Commit

Permalink
fix(element-selection): fix wrong action end listener
Browse files Browse the repository at this point in the history
  • Loading branch information
fengyuanchen committed Jul 6, 2024
1 parent 0193036 commit 5f764a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/element-selection/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ export default class CropperSelection extends CropperElement {
this.$onCanvasActionEnd = this.$handleActionEnd.bind(this);
this.$onCanvasAction = this.$handleAction.bind(this);
on($canvas, EVENT_ACTION_START, this.$onCanvasActionStart);
on($canvas, EVENT_ACTION_END, this.$onCanvasActionStart);
on($canvas, EVENT_ACTION_END, this.$onCanvasActionEnd);
on($canvas, EVENT_ACTION, this.$onCanvasAction);
} else {
this.$render();
Expand Down

0 comments on commit 5f764a1

Please sign in to comment.