summary refs log tree commit diff
path: root/resources/qml/ScrollHelper.qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-08-06 03:28:56 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2021-08-06 04:31:53 +0200
commit16d0190f4e1ee79025ec47f3dcfa1fb701a63ff1 (patch)
treeadebf1fc550cf03bcf5a9186bfc5572d29c0226e /resources/qml/ScrollHelper.qml
parentBasic sticker pack editor (diff)
downloadnheko-16d0190f4e1ee79025ec47f3dcfa1fb701a63ff1.tar.xz
Allow uploading additional stickers
Diffstat (limited to 'resources/qml/ScrollHelper.qml')
-rw-r--r--resources/qml/ScrollHelper.qml7
1 files changed, 3 insertions, 4 deletions
diff --git a/resources/qml/ScrollHelper.qml b/resources/qml/ScrollHelper.qml
index e584ae3d..e84e67fd 100644
--- a/resources/qml/ScrollHelper.qml
+++ b/resources/qml/ScrollHelper.qml
@@ -23,6 +23,9 @@ MouseArea {
     // console.warn("Delta: ", wheel.pixelDelta.y);
     // console.warn("Old position: ", flickable.contentY);
     // console.warn("New position: ", newPos);
+    // breaks ListView's with headers...
+    //if (typeof (flickableItem.headerItem) !== "undefined" && flickableItem.headerItem)
+    //    minYExtent += flickableItem.headerItem.height;
 
     id: root
 
@@ -30,10 +33,6 @@ MouseArea {
     property alias enabled: root.enabled
 
     function calculateNewPosition(flickableItem, wheel) {
-        // breaks ListView's with headers...
-        //if (typeof (flickableItem.headerItem) !== "undefined" && flickableItem.headerItem)
-        //    minYExtent += flickableItem.headerItem.height;
-
         //Nothing to scroll
         if (flickableItem.contentHeight < flickableItem.height)
             return flickableItem.contentY;