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:
miruka 2019-09-06 14:24:12 -04:00
parent ddce551360
commit f6a24ec020

View File

@ -171,8 +171,6 @@ function getItem(array, mainKey, value) {
function smartVerticalFlick(flickable, baseVelocity, fastMultiply=4) {
if (! flickable.interactive && flickable.enableFlicking) return
if (flickable.verticalOvershoot != 0) return
if (baseVelocity > 0 && flickable.atYEnd) return
baseVelocity = -baseVelocity
let vel = -flickable.verticalVelocity