summary refs log tree commit diff
path: root/resources/qml/ScrollHelper.qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-05-13 23:32:39 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2020-05-13 23:33:00 +0200
commitd6981355d37db3ec3fda9a5a911cda1c82ab6cca (patch)
treee66e7f24d615983ac170ac80fb07b1db773bdaa6 /resources/qml/ScrollHelper.qml
parentClip replies by default (diff)
downloadnheko-d6981355d37db3ec3fda9a5a911cda1c82ab6cca.tar.xz
Align scrolling to pixels manually
Diffstat (limited to '')
-rw-r--r--resources/qml/ScrollHelper.qml2
1 files changed, 2 insertions, 0 deletions
diff --git a/resources/qml/ScrollHelper.qml b/resources/qml/ScrollHelper.qml
index 3a8868f5..cdb4a23a 100644
--- a/resources/qml/ScrollHelper.qml
+++ b/resources/qml/ScrollHelper.qml
@@ -71,6 +71,8 @@ MouseArea {
             pixelDelta = wheel.pixelDelta.y
         }
 
+	pixelDelta = Math.round(pixelDelta)
+
         if (!pixelDelta) {
             return flickableItem.contentY;
         }