Remove overshoot check for smartVerticalFlick()
Keyboard flicking feels better witohut rather than just abruptly stopping or not doing anything if the user is already at the top/bottom of the flickable.
This commit is contained in:
parent
ddce551360
commit
f6a24ec020
|
@ -171,8 +171,6 @@ function getItem(array, mainKey, value) {
|
||||||
|
|
||||||
function smartVerticalFlick(flickable, baseVelocity, fastMultiply=4) {
|
function smartVerticalFlick(flickable, baseVelocity, fastMultiply=4) {
|
||||||
if (! flickable.interactive && flickable.enableFlicking) return
|
if (! flickable.interactive && flickable.enableFlicking) return
|
||||||
if (flickable.verticalOvershoot != 0) return
|
|
||||||
if (baseVelocity > 0 && flickable.atYEnd) return
|
|
||||||
|
|
||||||
baseVelocity = -baseVelocity
|
baseVelocity = -baseVelocity
|
||||||
let vel = -flickable.verticalVelocity
|
let vel = -flickable.verticalVelocity
|
||||||
|
|
Loading…
Reference in New Issue
Block a user