git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60967
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxevent.SetEventType( wxEVT_MOUSEWHEEL ) ;
wxevent.m_wheelDelta = 10;
wxevent.m_linesPerAction = 1;
wxevent.SetEventType( wxEVT_MOUSEWHEEL ) ;
wxevent.m_wheelDelta = 10;
wxevent.m_linesPerAction = 1;
- NSLog(@"deltaX %f, deltaY %f",[nsEvent deltaX], [nsEvent deltaY]);
- if ( abs([nsEvent deltaX]) > abs([nsEvent deltaY]) )
+
+ if ( fabs([nsEvent deltaX]) > fabs([nsEvent deltaY]) )
{
wxevent.m_wheelAxis = 1;
wxevent.m_wheelRotation = [nsEvent deltaX] * 10.0;
{
wxevent.m_wheelAxis = 1;
wxevent.m_wheelRotation = [nsEvent deltaX] * 10.0;