Bug & corresponding patch for wxMac 2.8.10

0 views
Skip to first unread message

Olivier Michel

unread,
Nov 3, 2009, 5:58:03 AM11/3/09
to wx-users
Hi,

On wxWidgets 2.8.10 under Mac OS X, when the shift key is pressed, no
mouse wheel events are generated, as it is the case on other platforms
(Linux and Windows). I found a very simple and clean patch for this:

wxWidgets/branches/WX_2_8_BRANCH/src/mac/carbon/toplevel.cpp, line 370
should be changed from:

if ( axis == kEventMouseWheelAxisY)
to:

if ( axis == kEventMouseWheelAxisY || axis ==
kEventMouseWheelAxisX)

Could anyone commit it?

Cheers,

-Olivier

Vadim Zeitlin

unread,
Nov 3, 2009, 8:32:39 AM11/3/09
to wx-u...@googlegroups.com
On Tue, 3 Nov 2009 02:58:03 -0800 (PST) Olivier Michel <olivier...@cyberbotics.com> wrote:

OM> On wxWidgets 2.8.10 under Mac OS X, when the shift key is pressed, no
OM> mouse wheel events are generated, as it is the case on other platforms
OM> (Linux and Windows). I found a very simple and clean patch for this:
OM>
OM> wxWidgets/branches/WX_2_8_BRANCH/src/mac/carbon/toplevel.cpp, line 370
OM> should be changed from:
OM>
OM> if ( axis == kEventMouseWheelAxisY)
OM> to:
OM>
OM> if ( axis == kEventMouseWheelAxisY || axis ==
OM> kEventMouseWheelAxisX)
OM>
OM> Could anyone commit it?

This looks right to me so I'll commit it, thanks!
VZ

--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/

Reply all
Reply to author
Forward
0 new messages