mce 0.13.10 → 0.13.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +4 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -9448,8 +9448,10 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
9448
9448
  rotate: style.rotate + offsetStyle.rotate,
9449
9449
  borderRadius: Math.round(style.borderRadius + offsetStyle.borderRadius)
9450
9450
  };
9451
- newStyle.left = snap(newStyle.left, "x");
9452
- newStyle.top = snap(newStyle.top, "y");
9451
+ if (handle === "move") {
9452
+ newStyle.left = snap(newStyle.left, "x");
9453
+ newStyle.top = snap(newStyle.top, "y");
9454
+ }
9453
9455
  if (handle.startsWith("resize")) {
9454
9456
  resizeElement(
9455
9457
  element,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mce",
3
3
  "type": "module",
4
- "version": "0.13.10",
4
+ "version": "0.13.11",
5
5
  "description": "The headless canvas editor framework. only the ESM.",
6
6
  "author": "wxm",
7
7
  "license": "MIT",