This commit is contained in:
2026-05-13 14:09:41 +08:00
parent 752bb23571
commit f3dfb6b68d
2 changed files with 45 additions and 4 deletions
+2 -2
View File
@@ -4386,7 +4386,7 @@ export class Grid {
this._var.refs.footer.parentElement.style.bottom = `${this._var.footerOffset - e.target.scrollTop}px`;
}
const tti = this._topToIndex(top);
if (this.onBodyScrolled === 'function') {
if (typeof this.onBodyScrolled === 'function') {
this.onBodyScrolled(e, tti.index, this._var.rowCount);
}
return;
@@ -4395,7 +4395,7 @@ export class Grid {
if (this.total != null) {
this._var.refs.footer.parentElement.style.bottom = `${this._var.refs.table.offsetTop + this._var.footerOffset - e.target.scrollTop}px`;
}
if (this.onBodyScrolled === 'function') {
if (typeof this.onBodyScrolled === 'function') {
this.onBodyScrolled(e, this._var.startIndex, this._var.rowCount);
}
if (this._var.isFirefox) {