ScrollAccumulator class

Alacritty AccumulatedScroll + line extraction from scroll_terminal.

Positive ingest dy (finger/trackpad moves down) → positive remainder → scroll up into history / program "up" direction.

Constructors

ScrollAccumulator({required double cellHeight})

Properties

cellHeight double
final
hashCode int
The hash code for this object.
no setterinherited
remainderPx double
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

ingest({required double dyPx, required double multiplier}) int
Add pixel delta (already OS-scaled) times multiplier. Returns whole lines crossed this call (signed). Keeps sub-line remainder in remainderPx, matching Alacritty's % height retention.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited