@syncfusion/ej2-treegrid 27.1.56 → 27.1.57

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.
@@ -4428,9 +4428,6 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
4428
4428
  if (this.pageSettings.pageSizeMode === 'Root') {
4429
4429
  this.grid.selectionModule['totalRecordsCount'] = this.grid.currentViewData.length;
4430
4430
  }
4431
- if (this.enableVirtualization && args.rowIndex === this.selectedRowIndex && !this.enablePersistence) {
4432
- args.cancel = true;
4433
- }
4434
4431
  if (!isNullOrUndefined(this.selectionSettings) && !this.selectionSettings.persistSelection &&
4435
4432
  this.enableVirtualization && args.rowIndex === this.selectedRowIndex && this.isGantt) {
4436
4433
  args.cancel = false;
@@ -13271,7 +13268,7 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
13271
13268
  content = this.parent.getContent().querySelector('.e-content');
13272
13269
  }
13273
13270
  const scrollHeight = outBuffer * rowHeight;
13274
- const upScroll = (scrollArgs.offset.top - this.translateY) <= 0;
13271
+ const upScroll = (scrollArgs.offset.top - this.translateY) < 0;
13275
13272
  const downScroll = Math.ceil(scrollArgs.offset.top - this.translateY) + rowHeight >= scrollHeight;
13276
13273
  const selectedRowIndex = 'selectedRowIndex';
13277
13274
  const currentViewData = this.parent.currentViewData;
@@ -13312,8 +13309,9 @@ class VirtualTreeContentRenderer extends VirtualContentRenderer {
13312
13309
  firsttdinx = +attr; // this.parent.getContent().querySelector('.e-content tr').getAttribute('data-rowindex');
13313
13310
  }
13314
13311
  if (firsttdinx === 0) {
13315
- this.translateY = (scrollArgs.offset.top - (outBuffer * rowHeight) > 0) ?
13316
- scrollArgs.offset.top - (outBuffer * this.parent.getRowHeight()) + rowHeight : 0;
13312
+ this.translateY = !isNullOrUndefined(this.endIndex) ?
13313
+ (this.endIndex - this.parent.pageSettings.pageSize) * (this.parent.rowHeight ?
13314
+ this.parent.rowHeight : this.parent.getRowHeight()) : 0;
13317
13315
  }
13318
13316
  else if (this.parent.getFrozenColumns() > 0) {
13319
13317
  scrollArgs.offset.top = scrollArgs.offset.top + 80;