Change how wheel scrolling works in qml grid views

This fixes scrolling in Qt6
This commit is contained in:
Luis Ángel San Martín
2023-01-14 14:15:30 +01:00
parent dec297a63c
commit 8f0619887c
4 changed files with 12 additions and 4 deletions

View File

@ -722,7 +722,7 @@ SplitView {
return;
}
var newValue = Math.min((grid.contentHeight - grid.height - (showCurrentComic ? 270 : 20)), (Math.max(grid.originY , grid.contentY - event.angleDelta.y)));
var newValue = Math.min((grid.contentHeight - grid.height + grid.originY), (Math.max(grid.originY , grid.contentY - event.angleDelta.y)));
grid.contentY = newValue;
}
}