@jsenv/dom 0.11.1 → 0.11.2
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/jsenv_dom.js +3 -5
- package/package.json +1 -1
package/dist/jsenv_dom.js
CHANGED
|
@@ -8430,6 +8430,9 @@ const initDragConstraints = (
|
|
|
8430
8430
|
);
|
|
8431
8431
|
|
|
8432
8432
|
const logConstraintEnforcement = (axis, constraint) => {
|
|
8433
|
+
if (constraint.type === "bounds") {
|
|
8434
|
+
return;
|
|
8435
|
+
}
|
|
8433
8436
|
if (constraint.type === "obstacle") {
|
|
8434
8437
|
return;
|
|
8435
8438
|
}
|
|
@@ -8492,11 +8495,6 @@ const initDragConstraints = (
|
|
|
8492
8495
|
const leftModified = elementLeft !== elementLeftRequested;
|
|
8493
8496
|
const topModified = elementTop !== elementTopRequested;
|
|
8494
8497
|
if (!leftModified && !topModified) {
|
|
8495
|
-
{
|
|
8496
|
-
console.debug(
|
|
8497
|
-
`Drag by ${dragEvent.type}: no constraint enforcement needed (${elementLeftRequested.toFixed(2)}, ${elementTopRequested.toFixed(2)})`,
|
|
8498
|
-
);
|
|
8499
|
-
}
|
|
8500
8498
|
return;
|
|
8501
8499
|
}
|
|
8502
8500
|
|