Skip to content

Commit 67eea73

Browse files
committed
Fix: Fix that the warpEnd event didn't call
1 parent 8794eec commit 67eea73

File tree

6 files changed

+19
-27
lines changed

6 files changed

+19
-27
lines changed

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "moveable",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"description": "Moveable is Draggable, Resizable, Scalable, Rotatable, Warpable.",
55
"main": "./dist/moveable.cjs.js",
66
"module": "./dist/moveable.esm.js",
@@ -52,7 +52,7 @@
5252
"@daybrush/utils": "^0.10.0",
5353
"@egjs/component": "^2.1.2",
5454
"framework-utils": "^0.1.0",
55-
"preact-moveable": "^0.6.2"
55+
"preact-moveable": "^0.6.3"
5656
},
5757
"devDependencies": {
5858
"@daybrush/builder": "^0.1.1",

packages/preact-moveable/package-lock.json

Lines changed: 4 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/preact-moveable/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "preact-moveable",
3-
"version": "0.6.2",
3+
"version": "0.6.3",
44
"description": "A Preact Component that create Moveable, Draggable, Resizable, Scalable, Rotatable.",
55
"main": "./dist/moveable.cjs.js",
66
"module": "./dist/moveable.esm.js",
@@ -60,6 +60,6 @@
6060
"framework-utils": "^0.1.0",
6161
"preact-compat": "^3.19.0",
6262
"preact-css-styler": "^0.3.2",
63-
"react-moveable": "^0.7.1"
63+
"react-moveable": "^0.7.2"
6464
}
6565
}

packages/react-moveable/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-moveable",
3-
"version": "0.7.1",
3+
"version": "0.7.2",
44
"description": "A React Component that create Moveable, Draggable, Resizable, Scalable, Rotatable, Warpable.",
55
"main": "./dist/moveable.cjs.js",
66
"module": "./dist/moveable.esm.js",

packages/react-moveable/src/react-moveable/MoveableDragger.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { hasClass } from "@daybrush/utils";
55
import { scaleStart, scale, scaleEnd } from "./Scalable";
66
import { rotateStart, rotate, rotateEnd } from "./Rotatable";
77
import { resizeStart, resize, resizeEnd } from "./Resizable";
8-
import { warpStart, warp } from "./Warpable";
8+
import { warpStart, warp, warpEnd } from "./Warpable";
99

1010
export function getMoveableDragger(
1111
moveable: Moveable,
@@ -64,6 +64,8 @@ export function getMoveableDragger(
6464
return scaleEnd(moveable, { isDrag, clientX, clientY });
6565
} else if (type === "resize") {
6666
return resizeEnd(moveable, { isDrag, clientX, clientY });
67+
} else if (type === "warp") {
68+
return warpEnd(moveable, { isDrag, clientX, clientY });
6769
}
6870
},
6971
});

0 commit comments

Comments
 (0)