skip mouse events we're not interested in (e.g. mouse wheel ones) (closes #10062)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@58400 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-01-25 14:45:52 +00:00
parent 40eadc76ec
commit efdd3d171c

View File

@@ -212,7 +212,10 @@ void wxSplitterWindow::OnMouseEvent(wxMouseEvent& event)
y = (int)event.GetY(); y = (int)event.GetY();
if ( GetWindowStyle() & wxSP_NOSASH ) if ( GetWindowStyle() & wxSP_NOSASH )
{
event.Skip();
return; return;
}
// with wxSP_LIVE_UPDATE style the splitter windows are always resized // with wxSP_LIVE_UPDATE style the splitter windows are always resized
// following the mouse movement while it drags the sash, without it we only // following the mouse movement while it drags the sash, without it we only
@@ -394,6 +397,10 @@ void wxSplitterWindow::OnMouseEvent(wxMouseEvent& event)
{ {
OnDoubleClickSash(x, y); OnDoubleClickSash(x, y);
} }
else
{
event.Skip();
}
} }
void wxSplitterWindow::OnSize(wxSizeEvent& event) void wxSplitterWindow::OnSize(wxSizeEvent& event)