diff --git a/src/generic/vscroll.cpp b/src/generic/vscroll.cpp index a7d388a9bf..7ea4ff385a 100644 --- a/src/generic/vscroll.cpp +++ b/src/generic/vscroll.cpp @@ -382,6 +382,12 @@ bool wxVScrolledWindow::ScrollToLine(size_t line) } else // overlap between the lines we showed before and should show now { + // Avoid scrolling visible parts of the screen on Mac +#ifdef __WXMAC__ + if (!IsShownOnScreen()) + Refresh(); + else +#endif ScrollWindow(0, GetLinesHeight(GetVisibleBegin(), lineFirstOld)); }