Avoid scrolling parts of the screen that don't belong to us

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51580 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2008-02-07 14:16:19 +00:00
parent 5d2788a3e2
commit 6e3f26d842

View File

@@ -601,7 +601,12 @@ bool wxVarScrollHelperBase::DoScrollToUnit(size_t unit)
}
else // scroll the window
{
// Avoid scrolling visible parts of the screen on Mac
#ifdef __WXMAC__
if (m_physicalScrolling && m_targetWindow->IsShownOnScreen())
#else
if ( m_physicalScrolling )
#endif
{
wxCoord dx = 0,
dy = GetUnitsSize(GetVisibleBegin(), unitFirstOld);