adapting to new x wheel behavior, see #15269
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1018,6 +1018,9 @@ void wxScrollHelperBase::HandleOnMouseWheel(wxMouseEvent& event)
|
|||||||
newEvent.SetOrientation( event.GetWheelAxis() == 0 ? wxVERTICAL : wxHORIZONTAL);
|
newEvent.SetOrientation( event.GetWheelAxis() == 0 ? wxVERTICAL : wxHORIZONTAL);
|
||||||
newEvent.SetEventObject(m_win);
|
newEvent.SetEventObject(m_win);
|
||||||
|
|
||||||
|
if ( event.GetWheelAxis() == wxMOUSE_WHEEL_HORIZONTAL )
|
||||||
|
lines = -lines;
|
||||||
|
|
||||||
if (event.IsPageScroll())
|
if (event.IsPageScroll())
|
||||||
{
|
{
|
||||||
if (lines > 0)
|
if (lines > 0)
|
||||||
|
Reference in New Issue
Block a user