Raise max flicking speed while keyboard-scrolling

Lets holding the page down/up keybinds properly do their job again
This commit is contained in:
miruka 2020-07-21 23:53:56 -04:00
parent c1f9416f1a
commit ad8c9d55dc
2 changed files with 8 additions and 5 deletions

View File

@ -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

View File

@ -434,9 +434,12 @@ QtObject {
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,6 +450,7 @@ QtObject {
horizontal ? flickable.flick(flick, 0) : flickable.flick(0, flick)
flickable.maximumFlickVelocity = normalMaxSpeed
flickable.flickDeceleration = normalDecel
}