Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Mobile
Commits
17938b31
Commit
17938b31
authored
Feb 17, 2021
by
Devin Lin
🎨
Committed by
Bhushan Shah
Feb 22, 2021
Browse files
Close sliding panel as soon as it's off the screen for no delay
parent
f231b04b
Changes
1
Hide whitespace changes
Inline
Side-by-side
containments/panel/package/contents/ui/SlidingPanel.qml
View file @
17938b31
...
@@ -67,7 +67,11 @@ NanoShell.FullScreenOverlay {
...
@@ -67,7 +67,11 @@ NanoShell.FullScreenOverlay {
}
}
function
updateState
()
{
function
updateState
()
{
cancelAnimations
();
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
)
{
if
(
offset
<
openThreshold
)
{
close
();
close
();
}
else
{
}
else
{
...
...
Devin Lin
🎨
@devinlin
mentioned in commit
cf020e0f
·
Feb 22, 2021
mentioned in commit
cf020e0f
mentioned in commit cf020e0fe6dab16c285fc719b42e8f6cea0f9071
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment