Re: Wheel events

Hi Travis,


On 12/09/2008 02:15 AM, Travis Leithead wrote:
>>> Pixel scrolling / line scrolling aren't "intended purpose". They are describing the data browser gets from the operating
> system.
>
> At least on Windows-OS, this binding of pixel/line scrolling to a wheel event does not exist. I think that the design taken for the OS-level event provides good design guidance for how the event could be used inside of a web application:
>
>> From MSDN (http://msdn.microsoft.com/en-us/library/ms645617.aspx) --
> wParam
> The high-order word indicates the distance the wheel is rotated, expressed in multiples or divisions of WHEEL_DELTA, which is 120. A positive value indicates that the wheel was rotated forward, away from the user; a negative value indicates that the wheel was rotated backward, toward the user.

Windows doesn't have pixel/line scrolling but it *does* have page/line scrolling.
See http://msdn.microsoft.com/en-us/library/ms645601.aspx#_win32_The_Mouse_Wheel
and SPI_GETWHEELSCROLLLINES/SPI_SETWHEELSCROLLLINES
http://msdn.microsoft.com/en-us/library/aa932539.aspx


-Olli

Received on Sunday, 14 December 2008 21:15:25 UTC