@ninebone/grid 0.0.160 → 0.0.162

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/nine-grid.js CHANGED
@@ -28577,7 +28577,7 @@ class sf extends HTMLElement {
28577
28577
  var r = t.clientY - this.shiftY;
28578
28578
  r < 0 && (r = 0), r + this.thumbHeight > c && (r = parseInt(c - o));
28579
28579
  var n = parseInt($(".ng-container-body tbody.bindable tr", f(this, Dt).body).not(".nodata").length / f(this, Dt).template.length), s = parseInt(r * (f(this, Dt).data.count() + 1 - n) / parseInt(c - o)), e = Math.max(0, c - o), i = Math.max(0, f(this, Dt).matrix.getTotalHeight() - this.bodyHeight), u = f(this, Dt).matrix.getHeight(s), a = i > 0 ? u * (e / i) : 0;
28580
- f(this, Dt).dataManager.viewRecords.rawIndex != s ? (f(this, Dt).scrollToV2(s), tt(this, _n, t.clientY), tt(this, pi, 0), He(this, _a, iu).call(this, 0)) : (f(this, me).thumb.style.top = r + "px", f(this, Dt).matrix.getHeight(f(this, Dt).dataManager.viewRecords.rawIndex), ad.log(u, a, l, s, u * l / a), l > 0 ? tt(this, pi, -Math.abs(u * l / a)) : tt(this, pi, -Math.abs(u - u * l / a)), He(this, _a, iu).call(this, f(this, pi)));
28580
+ f(this, Dt).dataManager.viewRecords.rawIndex != s ? (f(this, Dt).scrollToV2(s), tt(this, _n, t.clientY), tt(this, pi, 0), He(this, _a, iu).call(this, 0)) : (f(this, me).thumb.style.top = r + "px", f(this, Dt).matrix.getHeight(f(this, Dt).dataManager.viewRecords.rawIndex), ad.log(u, a, l, s, u * l / a), l > 0 ? tt(this, pi, -Math.abs(u * l / a)) : tt(this, pi, -Math.abs(u + u * l / a)), He(this, _a, iu).call(this, f(this, pi)));
28581
28581
  });
28582
28582
  Y(this, kn, () => parseInt(f(this, me).thumb.dataset.height));
28583
28583
  this.attachShadow({ mode: "open" });