diff --git a/src/qml/danbooruimageview.qml b/src/qml/danbooruimageview.qml index 02ca708..50f4245 100644 --- a/src/qml/danbooruimageview.qml +++ b/src/qml/danbooruimageview.qml @@ -46,8 +46,6 @@ Rectangle { Rectangle { width: grid.cellWidth; height: grid.cellHeight color: "lightsteelblue"; radius: 5 - x: grid.currentItem.x - y: grid.currentItem.y } } @@ -191,16 +189,17 @@ Rectangle { flow: GridView.FlowLeftToRight anchors.fill: parent + clip: true highlight: highlight highlightFollowsCurrentItem: true - highlightRangeMode: GridView.StrictlyEnforceRange + highlightRangeMode: GridView.ApplyRange model: danbooruModel delegate: viewDelegate focus: true - Component.onCompleted: { currentIndex = 0} + Component.onCompleted: { currentIndex = -1; forceActiveFocus()} onAtYEndChanged: { if (grid.atYEnd) {