summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwidget_mac.mm
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/kernel/qwidget_mac.mm')
-rw-r--r--src/gui/kernel/qwidget_mac.mm4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/kernel/qwidget_mac.mm b/src/gui/kernel/qwidget_mac.mm
index 03f496e..f3fbaa7 100644
--- a/src/gui/kernel/qwidget_mac.mm
+++ b/src/gui/kernel/qwidget_mac.mm
@@ -4654,6 +4654,10 @@ void QWidgetPrivate::scroll_sys(int dx, int dy)
void QWidgetPrivate::scroll_sys(int dx, int dy, const QRect &qscrollRect)
{
Q_Q(QWidget);
+
+ if (QMacScrollOptimization::delayScroll(this, dx, dy, qscrollRect))
+ return;
+
if (QApplicationPrivate::graphicsSystem() && !paintOnScreen()) {
// INVARIANT: Alien paint engine
scrollRect(qscrollRect, dx, dy);