Remove StrictlyEnforceRange
This causes nasty effects in the view
This commit is contained in:
parent
9b27b329ca
commit
5035caf3ef
1 changed files with 3 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue