mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
@ -218,7 +218,6 @@ export class VirtualScroll implements ComponentInterface {
|
||||
this.approxItemHeight,
|
||||
cellIndex, offset, len
|
||||
);
|
||||
console.debug('[virtual] cells recalculated', cells.length);
|
||||
this.cells = inplaceUpdate(this.cells, cells, cellIndex);
|
||||
this.lastItemLen = this.items.length;
|
||||
this.indexDirty = Math.max(offset - 1, 0);
|
||||
@ -331,7 +330,6 @@ export class VirtualScroll implements ComponentInterface {
|
||||
return;
|
||||
}
|
||||
if (cell.height !== height || cell.visible !== true) {
|
||||
console.debug(`[virtual] cell height or visibility changed ${cell.height}px -> ${height}px`);
|
||||
cell.visible = true;
|
||||
cell.height = height;
|
||||
this.indexDirty = Math.min(this.indexDirty, index);
|
||||
@ -372,7 +370,6 @@ export class VirtualScroll implements ComponentInterface {
|
||||
this.approxItemHeight,
|
||||
0, 0, this.lastItemLen
|
||||
);
|
||||
console.debug('[virtual] cells recalculated', this.cells.length);
|
||||
this.indexDirty = 0;
|
||||
}
|
||||
|
||||
@ -388,7 +385,6 @@ export class VirtualScroll implements ComponentInterface {
|
||||
this.heightIndex = resizeBuffer(this.heightIndex, this.cells.length);
|
||||
this.totalHeight = calcHeightIndex(this.heightIndex, this.cells, index);
|
||||
|
||||
console.debug('[virtual] height index recalculated', this.heightIndex.length - index);
|
||||
this.indexDirty = Infinity;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user