summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2013-02-28 12:13:23 -0800
committerBharat Mediratta <bharat@menalto.com>2013-02-28 12:13:23 -0800
commitd6460533506f37fcc7af0563a202b2b306548e13 (patch)
tree17ba4f58e5dc090a605125538063f16fc0103a42 /lib
parent8cec774bf9e2a5a5786107777754446a8166242e (diff)
parentef2ca6edb572501145ec3a4d6aa529118081188a (diff)
Merge pull request #172 from shadlaws/fix_2018_2023
#2018 follow-on and #2023 - Fixed issues with thumb hover effects.
Diffstat (limited to 'lib')
-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");
}
);