evui 3.9.0 → 3.9.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.js CHANGED
@@ -17444,7 +17444,7 @@ const KS = {
17444
17444
  var d, u, h, g, m, f, y, v;
17445
17445
  const o = ((u = (d = this.tooltipDOM) == null ? void 0 : d.style) == null ? void 0 : u.display) === "block", l = this.tooltipBodyDOM || ((h = this.tooltipDOM) == null ? void 0 : h.querySelector(this.options.tooltip.htmlScrollTarget));
17446
17446
  if (o && l) {
17447
- const { scrollTop: p, scrollHeight: w, clientHeight: I } = l, M = p <= 0, T = p + I >= w, _ = s.deltaY < 0, b = s.deltaY > 0;
17447
+ const { scrollTop: p, scrollHeight: w, clientHeight: I } = l, M = p <= 0, T = Math.ceil(p) + I >= w, _ = s.deltaY < 0, b = s.deltaY > 0;
17448
17448
  if (!(M && _ || T && b)) return;
17449
17449
  }
17450
17450
  s.preventDefault();
@@ -17804,9 +17804,15 @@ const oC = {
17804
17804
  const { dragSelection: o, type: l } = this.options;
17805
17805
  o.use && (l === "scatter" || l === "line" || l === "heatMap") && (this.removeSelectionArea(), this.dragStart(s, l));
17806
17806
  }, this.onWheel = (s) => {
17807
- var a, r, c;
17808
- const o = ((r = (a = this.tooltipDOM) == null ? void 0 : a.style) == null ? void 0 : r.display) === "block", l = (c = this.tooltipDOM) == null ? void 0 : c.querySelector(this.options.tooltip.htmlScrollTarget);
17809
- (o || l && l.scrollHeight > l.clientHeight) && (s.preventDefault(), o && (this.tooltipBodyDOM.scrollTop += s.deltaY), l && (l.scrollTop += s.deltaY));
17807
+ var m, f, y;
17808
+ if (!(((f = (m = this.tooltipDOM) == null ? void 0 : m.style) == null ? void 0 : f.display) === "block")) return;
17809
+ const l = ((y = this.tooltipDOM) == null ? void 0 : y.querySelector(this.options.tooltip.htmlScrollTarget)) || this.tooltipBodyDOM;
17810
+ if (!l || l.scrollHeight <= l.clientHeight) {
17811
+ this.hideTooltipDOM();
17812
+ return;
17813
+ }
17814
+ const { scrollTop: a, scrollHeight: r, clientHeight: c } = l, d = a <= 0, u = Math.ceil(a) + c >= r, h = s.deltaY < 0, g = s.deltaY > 0;
17815
+ s.preventDefault(), !(d && h) && !(u && g) && (l.scrollTop += s.deltaY);
17810
17816
  }, (t = (e = this.options) == null ? void 0 : e.tooltip) != null && t.useScrollbar && this.overlayCanvas.addEventListener("wheel", this.onWheel, { passive: !1 }), (i = (n = this.options) == null ? void 0 : n.tooltip) != null && i.throttledMove && (this.onMouseMove = sC(this.onMouseMove, 30)), this.overlayCanvas.addEventListener("mousemove", this.onMouseMove), this.overlayCanvas.addEventListener("mouseleave", this.onMouseLeave), this.overlayCanvas.addEventListener("dblclick", this.onDblClick), this.overlayCanvas.addEventListener("click", this.onClick), this.overlayCanvas.addEventListener("mousedown", this.onMouseDown), this.dragTouchSelectionEvent = (s) => this.dragTouchSelectionDestroy(s), window.addEventListener("click", this.dragTouchSelectionEvent);
17811
17817
  },
17812
17818
  /**
@@ -23562,7 +23568,7 @@ const ws = /* @__PURE__ */ we(p1, [["render", S1]]);
23562
23568
  ws.install = (e) => {
23563
23569
  e.component(ws.name, ws);
23564
23570
  };
23565
- const C1 = "3.8.2", w1 = [
23571
+ const C1 = "3.9.0", w1 = [
23566
23572
  qi,
23567
23573
  Ki,
23568
23574
  ai,