Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
static const int accelEnv = qgetenv("QT_NO_FAST_SCROLL").toInt() == 0;
QRect scrollRect = rect & clipRect();
- bool overlapped = false;
- bool accelerateScroll = accelEnv && isOpaque
- && !(overlapped = isOverlapped(scrollRect.translated(data.crect.topLeft())));
+ bool overlapped = isOverlapped(scrollRect.translated(data.crect.topLeft()));
+ bool accelerateScroll = accelEnv && isOpaque && !overlapped;
if (!accelerateScroll) {
if (overlapped) {