leafer-ui 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$5 = Debug.get("LeaferCanvas");
6348
6346
  class LeaferCanvas extends LeaferCanvasBase {
6349
6347
  set zIndex(zIndex) {
@@ -8560,7 +8558,10 @@ var LeaferUI = function(exports) {
8560
8558
  const data = this.__, layout = this.__layout, {renderBounds: renderBounds, boxBounds: boxBounds} = layout;
8561
8559
  const childrenRenderBounds = layout.childrenRenderBounds || (layout.childrenRenderBounds = getBoundsData());
8562
8560
  super.__updateRenderBounds(childrenRenderBounds);
8563
- scroll(childrenRenderBounds, data);
8561
+ if (data.overflow.includes("scroll")) {
8562
+ add(childrenRenderBounds, boxBounds);
8563
+ scroll(childrenRenderBounds, data);
8564
+ }
8564
8565
  this.__updateRectRenderBounds();
8565
8566
  isOverflow = !includes$1(boxBounds, childrenRenderBounds);
8566
8567
  if (isOverflow && data.overflow === "show") add(renderBounds, childrenRenderBounds);