Found two critical bugs in the .row scroll case:
Bug 1: Forward traversal (lines 1960-1974)
- Uses
<= instead of < and wrong y-coordinate calculation
- Currently:
y = node.data.size.rows - rem (inverted)
- Should be:
y = rem (direct mapping)
Bug 2: Backward traversal (lines 1975-1989)
- Initializes
rem = n but should count from bottom: rem = self.total_rows - n
The boundary check n >= self.total_rows - self.rows is correct, and .delta_row logic looks good.