winemac: Add the ability to disable high-resolution scrolling.

Ken Thomases ken at codeweavers.com
Wed May 14 20:15:35 CDT 2014


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    |    3 +
dlls/winemac.drv/cocoa_app.m    |   81 +++++++++++++++++++++++++++++---------
dlls/winemac.drv/macdrv_cocoa.h |    1 +
dlls/winemac.drv/macdrv_main.c  |    4 ++
4 files changed, 70 insertions(+), 19 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-winemac-Add-the-ability-to-disable-high-resolution-s.patch
Type: text/x-patch
Size: 7939 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20140514/acb2667b/attachment.bin>


More information about the wine-patches mailing list