winemac: Add the ability to disable high-resolution scrolling.
commit451915100a61a2e5f3e848d0c6ab7fb477b08d56
authorKen Thomases <ken@codeweavers.com>
Thu, 15 May 2014 01:15:35 +0000 (14 20:15 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 15 May 2014 09:28:52 +0000 (15 11:28 +0200)
treeadada05d0a639e6c47ce2190ce7a233c9f2ec07b
parent757c57634e567b816723b67a52529a0863aa6cd0
winemac: Add the ability to disable high-resolution scrolling.

The Mac driver can generate scroll wheel events with values which are not integral
multiples of WHEEL_DELTA.  Apps should handle that by scrolling a corresponding
non-integral multiple of what they'd do for a WHEEL_DELTA-valued scroll or, if
they can't, then at least accumulate scroll distance until its magnitude exceeds
WHEEL_DELTA and do a "chunky" scroll.  However, many apps don't do that properly.
They may scroll way too far/fast or even in the opposite direction.

If the registry setting UsePreciseScrolling is set to "n", the Mac driver will do
that accumulation and chunking itself to work around such broken app behavior.
dlls/winemac.drv/cocoa_app.h
dlls/winemac.drv/cocoa_app.m
dlls/winemac.drv/macdrv_cocoa.h
dlls/winemac.drv/macdrv_main.c