@leafer-ui/worker 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/worker.js +7 -6
- package/dist/worker.min.js +1 -1
- package/dist/worker.min.js.map +1 -1
- package/dist/worker.module.js +7 -6
- package/dist/worker.module.min.js +1 -1
- package/dist/worker.module.min.js.map +1 -1
- package/package.json +11 -11
package/dist/worker.js
CHANGED
|
@@ -1129,10 +1129,8 @@ var LeaferUI = function(exports) {
|
|
|
1129
1129
|
t.y += y;
|
|
1130
1130
|
},
|
|
1131
1131
|
scroll(t, data) {
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
t.y += data.scrollY;
|
|
1135
|
-
}
|
|
1132
|
+
t.x += data.scrollX;
|
|
1133
|
+
t.y += data.scrollY;
|
|
1136
1134
|
},
|
|
1137
1135
|
getByMove(t, x, y) {
|
|
1138
1136
|
t = Object.assign({}, t);
|
|
@@ -6343,7 +6341,7 @@ var LeaferUI = function(exports) {
|
|
|
6343
6341
|
this.levelMap = null;
|
|
6344
6342
|
}
|
|
6345
6343
|
}
|
|
6346
|
-
const version = "1.9.
|
|
6344
|
+
const version = "1.9.3";
|
|
6347
6345
|
class LeaferCanvas extends LeaferCanvasBase {
|
|
6348
6346
|
get allowBackgroundColor() {
|
|
6349
6347
|
return true;
|
|
@@ -8375,7 +8373,10 @@ var LeaferUI = function(exports) {
|
|
|
8375
8373
|
const data = this.__, layout = this.__layout, {renderBounds: renderBounds, boxBounds: boxBounds} = layout;
|
|
8376
8374
|
const childrenRenderBounds = layout.childrenRenderBounds || (layout.childrenRenderBounds = getBoundsData());
|
|
8377
8375
|
super.__updateRenderBounds(childrenRenderBounds);
|
|
8378
|
-
|
|
8376
|
+
if (data.overflow.includes("scroll")) {
|
|
8377
|
+
add(childrenRenderBounds, boxBounds);
|
|
8378
|
+
scroll(childrenRenderBounds, data);
|
|
8379
|
+
}
|
|
8379
8380
|
this.__updateRectRenderBounds();
|
|
8380
8381
|
isOverflow = !includes$1(boxBounds, childrenRenderBounds);
|
|
8381
8382
|
if (isOverflow && data.overflow === "show") add(renderBounds, childrenRenderBounds);
|