updateCellHeight method

void updateCellHeight(
  1. double cellHeight
)

Rebuilds the pixel accumulator when cell metrics change (font zoom). Sub-line ScrollAccumulator.remainderPx is intentionally discarded.

Implementation

void updateCellHeight(double cellHeight) {
  _cancelPendingProgram();
  _accumulator = ScrollAccumulator(cellHeight: cellHeight);
  _historyWheelAccumulator = ScrollAccumulator(cellHeight: cellHeight);
}