Commit cf020e0f authored by Devin Lin's avatar Devin Lin 🎨 Committed by Bhushan Shah
Browse files

Close sliding panel as soon as it's off the screen for no delay



(cherry picked from commit 17938b31)
parent ad21b85b
......@@ -67,7 +67,11 @@ NanoShell.FullScreenOverlay {
}
function updateState() {
cancelAnimations();
if (window.direction === SlidingPanel.MovementDirection.None) {
if (window.offset <= -headerHeight) {
// close immediately, so that we don't have to wait units.longDuration
window.visible = false;
window.closed();
} else if (window.direction === SlidingPanel.MovementDirection.None) {
if (offset < openThreshold) {
close();
} else {
......
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