Skip to content

Commit

Permalink
fix: fix onScaleGroupEnd param #755
Browse files Browse the repository at this point in the history
  • Loading branch information
daybrush committed Oct 10, 2022
1 parent b10af89 commit ce7d855
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/react-moveable/src/react-moveable/ables/Scalable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,15 +359,16 @@ export default {
return params;
},
dragControlEnd(moveable: MoveableManagerInterface<ScalableProps>, e: any) {
const { datas, isDrag } = e;
const { datas } = e;
if (!datas.isScale) {
return false;
}

datas.isScale = false;

triggerEvent(moveable, "onScaleEnd", fillEndParams<OnScaleEnd>(moveable, e, {}));
return isDrag;
const scaleEndParam = fillEndParams<OnScaleEnd>(moveable, e, {});
triggerEvent(moveable, "onScaleEnd", scaleEndParam);
return scaleEndParam;
},
dragGroupControlCondition: directionCondition,
dragGroupControlStart(moveable: MoveableGroupInterface<any, any>, e: any) {
Expand Down

0 comments on commit ce7d855

Please sign in to comment.