@leafer-ui/miniapp 1.9.2 → 1.9.3
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/miniapp.module.js
CHANGED
|
@@ -1191,10 +1191,8 @@ const BoundsHelper = {
|
|
|
1191
1191
|
t.y += y;
|
|
1192
1192
|
},
|
|
1193
1193
|
scroll(t, data) {
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
t.y += data.scrollY;
|
|
1197
|
-
}
|
|
1194
|
+
t.x += data.scrollX;
|
|
1195
|
+
t.y += data.scrollY;
|
|
1198
1196
|
},
|
|
1199
1197
|
getByMove(t, x, y) {
|
|
1200
1198
|
t = Object.assign({}, t);
|
|
@@ -6741,7 +6739,7 @@ class LeafLevelList {
|
|
|
6741
6739
|
}
|
|
6742
6740
|
}
|
|
6743
6741
|
|
|
6744
|
-
const version = "1.9.
|
|
6742
|
+
const version = "1.9.3";
|
|
6745
6743
|
|
|
6746
6744
|
class LeaferCanvas extends LeaferCanvasBase {
|
|
6747
6745
|
get allowBackgroundColor() {
|
|
@@ -9096,7 +9094,10 @@ let Box = class Box extends Group {
|
|
|
9096
9094
|
const data = this.__, layout = this.__layout, {renderBounds: renderBounds, boxBounds: boxBounds} = layout;
|
|
9097
9095
|
const childrenRenderBounds = layout.childrenRenderBounds || (layout.childrenRenderBounds = getBoundsData());
|
|
9098
9096
|
super.__updateRenderBounds(childrenRenderBounds);
|
|
9099
|
-
|
|
9097
|
+
if (data.overflow.includes("scroll")) {
|
|
9098
|
+
add(childrenRenderBounds, boxBounds);
|
|
9099
|
+
scroll(childrenRenderBounds, data);
|
|
9100
|
+
}
|
|
9100
9101
|
this.__updateRectRenderBounds();
|
|
9101
9102
|
isOverflow = !includes$1(boxBounds, childrenRenderBounds);
|
|
9102
9103
|
if (isOverflow && data.overflow === "show") add(renderBounds, childrenRenderBounds);
|