diff --git a/containments/homescreen/package/contents/ui/main.qml b/containments/homescreen/package/contents/ui/main.qml index 3d730d76..e712fb7c 100644 --- a/containments/homescreen/package/contents/ui/main.qml +++ b/containments/homescreen/package/contents/ui/main.qml @@ -395,9 +395,17 @@ MouseEventListener { } //manage separately the first page, the lockscreen - if (contentY < -headerItem.height + root.height && + //scrolling down + if (verticalVelocity > 0 && contentY < -headerItem.height + root.height && contentY > (-headerItem.height + root.height/6)) { - scrollAnim.to = -root.height + scrollAnim.to = -plasmoid.availableScreenRect.height + scrollAnim.running = true; + return; + + //scrolling up + } else if (verticalVelocity < 0 && contentY < -headerItem.height + root.height && + contentY < (-headerItem.height + root.height/6)) { + scrollAnim.to = -headerItem.height; scrollAnim.running = true; return; }