This commit is contained in:
Black Hat
2018-10-01 10:08:07 +08:00
parent 56b820e1a8
commit 0654a8b2b6
5 changed files with 8 additions and 3 deletions

View File

@@ -121,6 +121,7 @@ Item {
verticalLayoutDirection: ListView.BottomToTop
spacing: 8
cacheBuffer: 200
flickDeceleration: 4096
boundsBehavior: Flickable.DragOverBounds
@@ -130,7 +131,7 @@ Item {
onContentYChanged: {
// Check whether we're about to bump into the ceiling in 2 seconds
var curVelocity = verticalVelocity // Snapshot the current speed
if(curVelocity < 0 && contentY + curVelocity * 2 < originY)
if(curVelocity < 0 && contentY - 5000 < originY)
{
currentRoom.getPreviousContent(50);
}