Commit b405f43e authored by Marco Martin's avatar Marco Martin

easier to lock

parent fbcf4fa4
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment