Scripting API
Scripting API
ScrollUnit
Enum in Abyss.Core, from Abyss.Core.
How far one unit of scroll goes.
public enum ScrollUnit : uintRemarks
Worth branching on rather than ignoring: a mouse wheel reports lines and a trackpad reports pixels, so a game that treats them alike scrolls either imperceptibly or absurdly fast depending on the hardware it is run on.
Values
| Name | Value | Description |
|---|---|---|
Lines | 0 | Deltas are in lines of text — a mouse wheel. |
Pixels | 1 | Deltas are in pixels — a trackpad. |
