|
@@ -48,6 +48,7 @@ View {
|
|
property int columnIndex: index
|
|
property int columnIndex: index
|
|
property var imageArray: []
|
|
property var imageArray: []
|
|
property var imageQueue: []
|
|
property var imageQueue: []
|
|
|
|
+ property bool lastColumn: columnIndex === (globalSettings.columnCount - 1)
|
|
|
|
|
|
function stackHeight(imageIndex) {
|
|
function stackHeight(imageIndex) {
|
|
var height = 0
|
|
var height = 0
|
|
@@ -82,12 +83,12 @@ View {
|
|
var image = imageArray[i]
|
|
var image = imageArray[i]
|
|
var restingY = root.height - image.height - stackHeight(i)
|
|
var restingY = root.height - image.height - stackHeight(i)
|
|
var prospectiveY = image.y + d.velocity
|
|
var prospectiveY = image.y + d.velocity
|
|
- var lastColumn = columnIndex === (globalSettings.columnCount - 1)
|
|
|
|
|
|
+ var nextColumn = columnArray[columnIndex+1]
|
|
|
|
|
|
if (image.y > root.height) {
|
|
if (image.y > root.height) {
|
|
imageArray.shift()
|
|
imageArray.shift()
|
|
- columnArray[columnIndex+1].addImage(image)
|
|
|
|
- } else if (( lastColumn || !columnArray[columnIndex+1].receptive()) && prospectiveY >= restingY) {
|
|
|
|
|
|
+ nextColumn.addImage(image)
|
|
|
|
+ } else if ((lastColumn || !nextColumn.receptive()) && prospectiveY >= restingY) {
|
|
image.y = restingY
|
|
image.y = restingY
|
|
if (lastColumn) {
|
|
if (lastColumn) {
|
|
deathTimer.start()
|
|
deathTimer.start()
|
|
@@ -107,7 +108,7 @@ View {
|
|
x: d.columnWidth/globalUtil.columnWidthRatio(d.columnRatio, index)
|
|
x: d.columnWidth/globalUtil.columnWidthRatio(d.columnRatio, index)
|
|
width: {
|
|
width: {
|
|
var colWidth = d.columnWidth*Math.pow(d.columnRatio, index);
|
|
var colWidth = d.columnWidth*Math.pow(d.columnRatio, index);
|
|
- (index === (globalSettings.columnCount - 1)) && (globalVars.imageWidthOverride = colWidth)
|
|
|
|
|
|
+ lastColumn && (globalVars.imageWidthOverride = colWidth)
|
|
return colWidth
|
|
return colWidth
|
|
}
|
|
}
|
|
anchors { top: parent.top; bottom: parent.bottom }
|
|
anchors { top: parent.top; bottom: parent.bottom }
|