bkui-vue 1.0.3-beta.67.dialog.5 → 1.0.3-beta.68.dialog.1
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/index.esm.js
CHANGED
@@ -13587,7 +13587,8 @@ const { getElementWindow: _s, getElementDocument: gh, addClasses: Rs, removeClas
|
|
13587
13587
|
je(this, "mouseX", 0);
|
13588
13588
|
je(this, "mouseY", 0);
|
13589
13589
|
je(this, "mouseWheelInstance", null);
|
13590
|
-
je(this, "
|
13590
|
+
je(this, "wheelOffsetY", 0);
|
13591
|
+
je(this, "wheelOffsetX", 0);
|
13591
13592
|
je(this, "mouseWeelTimer");
|
13592
13593
|
/**
|
13593
13594
|
* 最外层滚动容器滚动实际位置缓存器
|
@@ -13691,7 +13692,7 @@ const { getElementWindow: _s, getElementDocument: gh, addClasses: Rs, removeClas
|
|
13691
13692
|
g[p][t] = `${n}px`, this.axis[p].track.el.style.setProperty("--scroll-offset-x", g[p].x), this.axis[p].track.el.style.setProperty("--scroll-offset-y", g[p].y);
|
13692
13693
|
});
|
13693
13694
|
}
|
13694
|
-
t === "y" && (this.
|
13695
|
+
t === "y" && (this.wheelOffsetY = n), t === "x" && (this.wheelOffsetX = n), (o = (r = this.options) == null ? void 0 : r.onScrollCallback) == null || o.call(r, {
|
13695
13696
|
x: this.wrapperScrollValue.scrollLeft,
|
13696
13697
|
y: this.wrapperScrollValue.scrollTop
|
13697
13698
|
}), this.positionScrollbar(t);
|
@@ -13713,9 +13714,9 @@ const { getElementWindow: _s, getElementDocument: gh, addClasses: Rs, removeClas
|
|
13713
13714
|
t.preventDefault(), t.stopPropagation();
|
13714
13715
|
});
|
13715
13716
|
je(this, "mOnMouseWheel", (t) => {
|
13716
|
-
const n = this.
|
13717
|
-
this.scrollToAxisPosition(n, "y") && (t.evt.stopPropagation(), t.evt.preventDefault(), t.evt.stopImmediatePropagation(), this.showScrollbar("y"), this.mouseWeelTimer && (clearTimeout(this.mouseWeelTimer), this.mouseWeelTimer = null), this.mouseWeelTimer = setTimeout(() => {
|
13718
|
-
this.hideScrollbar("y");
|
13717
|
+
const n = this.wheelOffsetY + t.y, i = this.wheelOffsetX + t.x;
|
13718
|
+
(this.scrollToAxisPosition(n, "y") || this.scrollToAxisPosition(i, "x")) && (t.evt.stopPropagation(), t.evt.preventDefault(), t.evt.stopImmediatePropagation(), this.showScrollbar("y"), this.showScrollbar("x"), this.mouseWeelTimer && (clearTimeout(this.mouseWeelTimer), this.mouseWeelTimer = null), this.mouseWeelTimer = setTimeout(() => {
|
13719
|
+
this.hideScrollbar("y"), this.showScrollbar("x");
|
13719
13720
|
}, 200));
|
13720
13721
|
});
|
13721
13722
|
je(this, "mOnStopScrolling", () => {
|