leafer-draw 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.
@@ -1191,10 +1191,8 @@ const BoundsHelper = {
1191
1191
  t.y += y;
1192
1192
  },
1193
1193
  scroll(t, data) {
1194
- if (data.scrollY || data.scrollX) {
1195
- t.x += data.scrollX;
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.2";
6742
+ const version = "1.9.3";
6745
6743
 
6746
6744
  const debug$4 = Debug.get("LeaferCanvas");
6747
6745
 
@@ -8947,7 +8945,10 @@ let Box = class Box extends Group {
8947
8945
  const data = this.__, layout = this.__layout, {renderBounds: renderBounds, boxBounds: boxBounds} = layout;
8948
8946
  const childrenRenderBounds = layout.childrenRenderBounds || (layout.childrenRenderBounds = getBoundsData());
8949
8947
  super.__updateRenderBounds(childrenRenderBounds);
8950
- scroll(childrenRenderBounds, data);
8948
+ if (data.overflow.includes("scroll")) {
8949
+ add(childrenRenderBounds, boxBounds);
8950
+ scroll(childrenRenderBounds, data);
8951
+ }
8951
8952
  this.__updateRectRenderBounds();
8952
8953
  isOverflow = !includes$1(boxBounds, childrenRenderBounds);
8953
8954
  if (isOverflow && data.overflow === "show") add(renderBounds, childrenRenderBounds);