https://bugs.kde.org/show_bug.cgi?id=295571
--- Comment #13 from Shlomi Fish <shlo...@shlomifish.org> --- (In reply to Emmanuel Pescosta from comment #12) > Review https://git.reviewboard.kde.org/r/126718/ > > This bug has been fixed in master. > Fix will be shipped with Dolphin 16.04. for me, building the new dolphin from git master source on Mageia Linux x86-64 v6 does not seem to fix the problem. The only way I can get it to work is using this patch that I don't expect to be applied as is : diff --git a/src/kitemviews/kitemlistcontainer.cpp b/src/kitemviews/kitemlistcontainer.cpp index 94b49db..a48e92f 100644 --- a/src/kitemviews/kitemlistcontainer.cpp +++ b/src/kitemviews/kitemlistcontainer.cpp @@ -34,6 +34,7 @@ #include <QScrollBar> #include <QStyle> #include <QStyleOption> +#include <cstdio> /** @@ -167,6 +168,7 @@ void KItemListContainer::scrollContentsBy(int dx, int dy) void KItemListContainer::wheelEvent(QWheelEvent* event) { + printf ("[PinkiePie]qApp->wheelScrollLines() == %ld\n", (long)qApp->wheelScrollLines()); if (event->modifiers().testFlag(Qt::ControlModifier)) { event->ignore(); return; @@ -184,7 +186,7 @@ void KItemListContainer::wheelEvent(QWheelEvent* event) m_horizontalSmoothScroller : m_verticalSmoothScroller; const QScrollBar* scrollBar = smoothScroller->scrollBar(); - if (!event->pixelDelta().isNull()) { + if (false) { //if (!event->pixelDelta().isNull()) { const int numPixels = event->pixelDelta().y(); if (event->modifiers().testFlag(Qt::ShiftModifier)) { const int scrollingDirection = numPixels > 0 ? 1 : -1; @@ -194,6 +196,7 @@ void KItemListContainer::wheelEvent(QWheelEvent* event) } } else { const int numDegrees = event->angleDelta().y() / 8; + printf ("qApp->wheelScrollLines() == %ld\n", (long)qApp->wheelScrollLines()); const int numSteps = qApp->wheelScrollLines() * numDegrees / 15; if (event->modifiers().testFlag(Qt::ShiftModifier)) { const int scrollingDirection = numSteps > 0 ? 1 : -1; diff --git a/src/kitemviews/private/kitemlistsmoothscroller.cpp b/src/kitemviews/private/kitemlistsmoothscroller.cpp index c89d3cf..5af16df 100644 --- a/src/kitemviews/private/kitemlistsmoothscroller.cpp +++ b/src/kitemviews/private/kitemlistsmoothscroller.cpp @@ -25,6 +25,7 @@ #include <QScrollBar> #include <QWheelEvent> #include <QStyle> +#include <cstdio> KItemListSmoothScroller::KItemListSmoothScroller(QScrollBar* scrollBar, QObject* parent) : @@ -201,6 +202,7 @@ void KItemListSmoothScroller::handleWheelEvent(QWheelEvent* event) numPixels = event->pixelDelta().y(); } else { const int numDegrees = event->angleDelta().y() / 8; + printf ("qApp->wheelScrollLines() == %ld\n", (long)qApp->wheelScrollLines()); const int numSteps = qApp->wheelScrollLines() * numDegrees / 15; numPixels = numSteps * m_scrollBar->pageStep() / 12; } -- You are receiving this mail because: You are watching all bug changes.