From: Vadim Zeitlin Date: Sun, 25 Jan 2009 14:45:52 +0000 (+0000) Subject: skip mouse events we're not interested in (e.g. mouse wheel ones) (closes #10062) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/25102676bc62ae5fb4bf3e71665bbe4276de6b81 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/trunk@58400 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/splitter.cpp b/src/generic/splitter.cpp index d0ac066eee..257939be07 100644 --- a/src/generic/splitter.cpp +++ b/src/generic/splitter.cpp @@ -211,8 +211,11 @@ void wxSplitterWindow::OnMouseEvent(wxMouseEvent& event) int x = (int)event.GetX(), y = (int)event.GetY(); - if (GetWindowStyle() & wxSP_NOSASH) + if ( GetWindowStyle() & wxSP_NOSASH ) + { + event.Skip(); return; + } // with wxSP_LIVE_UPDATE style the splitter windows are always resized // following the mouse movement while it drags the sash, without it we only @@ -396,6 +399,10 @@ void wxSplitterWindow::OnMouseEvent(wxMouseEvent& event) { OnDoubleClickSash(x, y); } + else + { + event.Skip(); + } } void wxSplitterWindow::OnSize(wxSizeEvent& event)