summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/styles/base.css3
-rw-r--r--app/ui.js12
2 files changed, 14 insertions, 1 deletions
diff --git a/app/styles/base.css b/app/styles/base.css
index 303be94..ac78606 100644
--- a/app/styles/base.css
+++ b/app/styles/base.css
@@ -374,6 +374,9 @@ html {
transition-delay: 0.2s;
transform: scale(1);
}
+#noVNC_control_bar_hint.noVNC_notransition {
+ transition: none !important;
+}
/* Control bar buttons */
.noVNC_button {
diff --git a/app/ui.js b/app/ui.js
index 464c7f2..9254120 100644
--- a/app/ui.js
+++ b/app/ui.js
@@ -589,10 +589,20 @@ const UI = {
// Consider this a movement of the handle
UI.controlbarDrag = true;
+
+ // The user has "followed" hint, let's hide it until the next drag
+ UI.showControlbarHint(false, false);
},
- showControlbarHint(show) {
+ showControlbarHint(show, animate=true) {
const hint = document.getElementById('noVNC_control_bar_hint');
+
+ if (animate) {
+ hint.classList.remove("noVNC_notransition");
+ } else {
+ hint.classList.add("noVNC_notransition");
+ }
+
if (show) {
hint.classList.add("noVNC_active");
} else {