Table of Contents

Field MouseWheelDeltaForOneLine

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

The number of units the mouse wheel should be rotated to scroll one line.

public static int MouseWheelDeltaForOneLine

Returns

int
The number of units the mouse wheel should be rotated to scroll one line.

Remarks

The delta was set to 120 to allow Microsoft or other vendors to build finer-resolution wheels in the future, including perhaps a freely-rotating wheel with no notches. The expectation is that such a device would send more messages per rotation, but with a smaller value in each message. To support this possibility, you should either add the incoming delta values until MouseWheelDeltaForOneLine amount is reached (so for a delta-rotation you get the same response), or scroll partial lines in response to the more frequent messages. You could also choose your scroll granularity and accumulate deltas until it is reached.