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.
package/dist/web.js CHANGED
@@ -1129,10 +1129,8 @@ var LeaferUI = function(exports) {
1129
1129
  t.y += y;
1130
1130
  },
1131
1131
  scroll(t, data) {
1132
- if (data.scrollY || data.scrollX) {
1133
- t.x += data.scrollX;
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.2";
6344
+ const version = "1.9.3";
6347
6345
  const debug$4 = Debug.get("LeaferCanvas");
6348
6346
  class LeaferCanvas extends LeaferCanvasBase {
6349
6347
  set zIndex(zIndex) {
@@ -8380,7 +8378,10 @@ var LeaferUI = function(exports) {
8380
8378
  const data = this.__, layout = this.__layout, {renderBounds: renderBounds, boxBounds: boxBounds} = layout;
8381
8379
  const childrenRenderBounds = layout.childrenRenderBounds || (layout.childrenRenderBounds = getBoundsData());
8382
8380
  super.__updateRenderBounds(childrenRenderBounds);
8383
- scroll(childrenRenderBounds, data);
8381
+ if (data.overflow.includes("scroll")) {
8382
+ add(childrenRenderBounds, boxBounds);
8383
+ scroll(childrenRenderBounds, data);
8384
+ }
8384
8385
  this.__updateRectRenderBounds();
8385
8386
  isOverflow = !includes$1(boxBounds, childrenRenderBounds);
8386
8387
  if (isOverflow && data.overflow === "show") add(renderBounds, childrenRenderBounds);