X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/519cb848a8f4c91c73421bb75314754284e593a4..7b9da2077d0975db6c965a85c91d5aca671ab5e3:/src/mac/scrolbar.cpp?ds=sidebyside diff --git a/src/mac/scrolbar.cpp b/src/mac/scrolbar.cpp index a432b3e9b1..92d6dd1faf 100644 --- a/src/mac/scrolbar.cpp +++ b/src/mac/scrolbar.cpp @@ -152,6 +152,13 @@ void wxScrollBar::MacHandleControlClick( ControlHandle control , SInt16 controlp } event.SetPosition(new_pos); event.SetEventObject( this ); - GetEventHandler()->ProcessEvent(event); + wxWindow* window = GetParent() ; + if (window && window->MacIsWindowScrollbar(this) ) + { + // this is hardcoded + window->MacOnScroll(event); + } + else + GetEventHandler()->ProcessEvent(event); }