diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-08-06 03:28:56 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-08-06 04:31:53 +0200 |
commit | 16d0190f4e1ee79025ec47f3dcfa1fb701a63ff1 (patch) | |
tree | adebf1fc550cf03bcf5a9186bfc5572d29c0226e /resources/qml/ScrollHelper.qml | |
parent | Basic sticker pack editor (diff) | |
download | nheko-16d0190f4e1ee79025ec47f3dcfa1fb701a63ff1.tar.xz |
Allow uploading additional stickers
Diffstat (limited to 'resources/qml/ScrollHelper.qml')
-rw-r--r-- | resources/qml/ScrollHelper.qml | 7 |
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; |