summaryrefslogtreecommitdiff
path: root/lib/gallery.common.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gallery.common.js')
-rw-r--r--lib/gallery.common.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/gallery.common.js b/lib/gallery.common.js
index fa11aeb9..c3d1362c 100644
--- a/lib/gallery.common.js
+++ b/lib/gallery.common.js
@@ -144,11 +144,13 @@
list.hide();
hover_target.hover(
+ // The stop arguments below ensure that when we leave an item with an expanded context
+ // menu then *quickly* come back, we neither freeze mid-slide nor flicker.
function() {
- list.stop(true, true).slideDown("fast");
+ list.stop(false, true).slideDown("fast");
},
function() {
- list.stop(true, true).slideUp("slow");
+ list.stop(true, false).slideUp("slow");
}
);