Make flickToTop/Bottom faster and more accurate
This commit is contained in:
parent
42f04b013e
commit
509b35a633
|
@ -455,9 +455,8 @@ QtObject {
|
|||
if (! flickable.interactive) return
|
||||
if (flickable.visibleArea.yPosition < 0) return
|
||||
|
||||
flickable.contentY -= flickable.contentHeight
|
||||
flickable.returnToBounds()
|
||||
flickable.flick(0, -100) // Force the delegates to load
|
||||
flickable.contentY = flickable.originY
|
||||
flickable.flick(0, 1000) // Force the delegates to load and bounce
|
||||
}
|
||||
|
||||
|
||||
|
@ -465,9 +464,10 @@ QtObject {
|
|||
if (! flickable.interactive) return
|
||||
if (flickable.visibleArea.yPosition < 0) return
|
||||
|
||||
flickable.contentY = flickable.contentHeight - flickable.height
|
||||
flickable.returnToBounds()
|
||||
flickable.flick(0, 100)
|
||||
flickable.contentY =
|
||||
flickable.originY + flickable.contentHeight - flickable.height
|
||||
|
||||
flickable.flick(0, -1000)
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user