diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-05-13 23:32:39 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-05-13 23:33:00 +0200 |
commit | d6981355d37db3ec3fda9a5a911cda1c82ab6cca (patch) | |
tree | e66e7f24d615983ac170ac80fb07b1db773bdaa6 /resources/qml/ScrollHelper.qml | |
parent | Clip replies by default (diff) | |
download | nheko-d6981355d37db3ec3fda9a5a911cda1c82ab6cca.tar.xz |
Align scrolling to pixels manually
Diffstat (limited to '')
-rw-r--r-- | resources/qml/ScrollHelper.qml | 2 |
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; } |