return;
}
+ const QScrollBar* scrollBar = (view->scrollOrientation() == Qt::Vertical)
+ ? verticalScrollBar() : horizontalScrollBar();
const qreal currentOffset = view->offset();
+ if (static_cast<int>(currentOffset) == scrollBar->value()) {
+ // The current offset is already synchronous to the scrollbar
+ return;
+ }
+
qreal offsetDiff = (view->scrollOrientation() == Qt::Vertical) ? dy : dx;
const bool animRunning = (m_smoothScrollingAnimation->state() == QAbstractAnimation::Running);
void KItemListContainer::wheelEvent(QWheelEvent* event)
{
+ if (event->modifiers().testFlag(Qt::ControlModifier)) {
+ event->ignore();
+ return;
+ }
+
KItemListView* view = m_controller->view();
+
if (!view || event->orientation() != view->scrollOrientation()) {
return;
}