fix the math for unlocking

This commit is contained in:
Marco Martin 2015-06-17 23:00:56 -07:00
parent 35fa1e62c8
commit 578f998f38

View file

@ -404,7 +404,7 @@ MouseEventListener {
//scrolling up
} else if (verticalVelocity < 0 && contentY < -headerItem.height + root.height &&
contentY < (-headerItem.height + root.height/6)) {
contentY < (-headerItem.height + root.height/6*5)) {
scrollAnim.to = -headerItem.height;
scrollAnim.running = true;
return;