diff --git a/TODO.md b/TODO.md index 18220ce1..13c638cb 100644 --- a/TODO.md +++ b/TODO.md @@ -6,7 +6,6 @@ - Avatar tooltip can get displayed in front of presence menu - Use loading cursorShape -- Increase keyboard page scroll speed - global presence control diff --git a/src/gui/Utils.qml b/src/gui/Utils.qml index e05cc88e..7c5815cd 100644 --- a/src/gui/Utils.qml +++ b/src/gui/Utils.qml @@ -432,11 +432,14 @@ QtObject { (futureVelocity < 0 && currentVelocity < futureVelocity / 2) || (futureVelocity > 0 && currentVelocity > futureVelocity / 2) - const magicNumber = 2.5 - const normalDecel = flickable.flickDeceleration - const fastMultiply = + const magicNumber = 2.5 + const normalDecel = flickable.flickDeceleration + const normalMaxSpeed = flickable.maximumFlickVelocity + const fastMultiply = pages && multiplier / (1 - Math.log10(Math.abs(pages))) + flickable.maximumFlickVelocity = 5000 + flickable.flickDeceleration = Math.max( goFaster ? normalDecel : -Infinity, Math.abs(normalDecel * magicNumber * pages), @@ -447,7 +450,8 @@ QtObject { horizontal ? flickable.flick(flick, 0) : flickable.flick(0, flick) - flickable.flickDeceleration = normalDecel + flickable.maximumFlickVelocity = normalMaxSpeed + flickable.flickDeceleration = normalDecel }