X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a49afa93ca428a2236d5bc76f628241036f01629..49a91764b57168d9f441578001b3206a7330ee70:/src/mac/scrolbar.cpp diff --git a/src/mac/scrolbar.cpp b/src/mac/scrolbar.cpp index fb7a5311ca..e9d45ce4e5 100644 --- a/src/mac/scrolbar.cpp +++ b/src/mac/scrolbar.cpp @@ -13,6 +13,8 @@ #pragma implementation "scrolbar.h" #endif +#include "wx/defs.h" + #include "wx/scrolbar.h" #include "wx/mac/uma.h" @@ -112,19 +114,19 @@ void wxScrollBar::MacHandleControlClick( ControlHandle control , SInt16 controlp switch( controlpart ) { case kControlUpButtonPart : - nScrollInc = -1; + nScrollInc = -m_pageSize; scrollEvent = wxEVT_SCROLL_LINEUP; break ; case kControlDownButtonPart : - nScrollInc = 1; + nScrollInc = m_pageSize; scrollEvent = wxEVT_SCROLL_LINEDOWN; break ; case kControlPageUpPart : - nScrollInc = -m_pageSize; + nScrollInc = -m_viewSize; scrollEvent = wxEVT_SCROLL_PAGEUP; break ; case kControlPageDownPart : - nScrollInc = m_pageSize; + nScrollInc = m_viewSize; scrollEvent = wxEVT_SCROLL_PAGEDOWN; break ; case kControlIndicatorPart :