@syncfusion/ej2-treegrid 25.2.5 → 25.2.6

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.
@@ -1996,7 +1996,9 @@ var Render = /** @__PURE__ @class */ (function () {
1996
1996
  && !isNullOrUndefined(rowsObj[parseInt(j.toString(), 10)].index)) {
1997
1997
  var cell = rowsObj[parseInt(j.toString(), 10)]["" + cells][parseInt(cellIndex.toString(), 10)];
1998
1998
  var cellRenderer = new CellRenderer(_this.parent.grid, _this.parent.grid.serviceLocator);
1999
- var td = _this.parent.getCellFromIndex(rowsObj[parseInt(j.toString(), 10)].index, cellIndex - indent);
1999
+ var td = rows.length >= rowsObj.length
2000
+ ? _this.parent.getCellFromIndex(rowsObj[parseInt(j.toString(), 10)].index, cellIndex - indent)
2001
+ : _this.parent.getRows()[rowsObj[parseInt(j.toString(), 10)].index].querySelector('.e-templatecell');
2000
2002
  cellRenderer.refreshTD(td, cell, rowsObj[parseInt(j.toString(), 10)].data, { index: rowsObj[parseInt(j.toString(), 10)]["" + rowIdx] });
2001
2003
  var treecell = _this.parent.getRows()[parseInt(j.toString(), 10)]
2002
2004
  .cells[parseInt(cellIndex.toString(), 10)];
@@ -8702,6 +8704,10 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
8702
8704
  var touchEvent = getObject('originalEvent.event', args);
8703
8705
  var posy = (mouseEvent.type === 'mousemove') ? mouseEvent.pageY : ((!isNullOrUndefined(touchEvent) &&
8704
8706
  !isNullOrUndefined(touchEvent.changedTouches)) ? touchEvent.changedTouches[0].pageY : null);
8707
+ if (this.parent.enableVirtualization) {
8708
+ posy = (mouseEvent.type === 'mousemove') ? mouseEvent.clientY : ((!isNullOrUndefined(touchEvent) &&
8709
+ !isNullOrUndefined(touchEvent.changedTouches)) ? touchEvent.changedTouches[0].clientY : null);
8710
+ }
8705
8711
  var isTopSegment = posy <= topRowSegment;
8706
8712
  var isMiddleRowSegment = (posy > topRowSegment && posy <= middleRowSegment);
8707
8713
  var isBottomRowSegment = (posy > middleRowSegment && posy <= bottomRowSegment);