@sepveneto/free-dom 0.11.6 → 0.11.7
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.
- package/dist/index.css +1 -1
- package/dist/index.js +3 -1
- package/dist/index.mjs +3 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
package/dist/index.js
CHANGED
|
@@ -1623,7 +1623,9 @@ var resizeDomCore = (0, import_vue_demi16.defineComponent)({
|
|
|
1623
1623
|
deltaY = -deltaY;
|
|
1624
1624
|
let width = props.width + (canDragX ? deltaX : 0);
|
|
1625
1625
|
let height = props.height + (canDragY ? deltaY : 0);
|
|
1626
|
-
|
|
1626
|
+
if (!evt.shiftKey) {
|
|
1627
|
+
[width, height] = runConstraints(width, height);
|
|
1628
|
+
}
|
|
1627
1629
|
const sizeChanged = width !== props.width || height !== props.height;
|
|
1628
1630
|
const fnName = `${handleName}Fn`;
|
|
1629
1631
|
const cb = typeof props[fnName] === "function" ? props[fnName] : null;
|
package/dist/index.mjs
CHANGED
|
@@ -1602,7 +1602,9 @@ var resizeDomCore = defineComponent4({
|
|
|
1602
1602
|
deltaY = -deltaY;
|
|
1603
1603
|
let width = props.width + (canDragX ? deltaX : 0);
|
|
1604
1604
|
let height = props.height + (canDragY ? deltaY : 0);
|
|
1605
|
-
|
|
1605
|
+
if (!evt.shiftKey) {
|
|
1606
|
+
[width, height] = runConstraints(width, height);
|
|
1607
|
+
}
|
|
1606
1608
|
const sizeChanged = width !== props.width || height !== props.height;
|
|
1607
1609
|
const fnName = `${handleName}Fn`;
|
|
1608
1610
|
const cb = typeof props[fnName] === "function" ? props[fnName] : null;
|