From 1b36dd7de911e2c19776d57d686acab2ebbabdba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Fri, 30 Sep 2022 23:36:23 +0200 Subject: [PATCH] Remove hack to keep content inside the grid view content size This seems no longer necessary in Qt6 (maybe it got fixed after bumping QtQuick to 2.15) --- YACReaderLibrary/qml/GridComicsView6.qml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/YACReaderLibrary/qml/GridComicsView6.qml b/YACReaderLibrary/qml/GridComicsView6.qml index 23895fd7..e7fb0f59 100644 --- a/YACReaderLibrary/qml/GridComicsView6.qml +++ b/YACReaderLibrary/qml/GridComicsView6.qml @@ -755,17 +755,6 @@ Rectangle { grid.cellWidth = cWidth + Math.floor(rest / wholeCells); } - WheelHandler { - onWheel: { - if (grid.contentHeight <= grid.height) { - return; - } - - var newValue = Math.min((grid.contentHeight - grid.height - (showCurrentComic ? 270 : 20)), (Math.max(grid.originY , grid.contentY - event.angleDelta.y))); - grid.contentY = newValue; - } - } - ScrollBar.vertical: ScrollBar { visible: grid.contentHeight > grid.height