Stop previous fades on next fade. Thanks artcfox.

master
Jason A. Donenfeld 2012-04-19 20:17:12 +02:00
parent 4643b9cd9f
commit 8b7d41937e
1 changed files with 3 additions and 3 deletions

View File

@ -289,16 +289,16 @@ $(document).ready(function() {
$("#photo-links").stop().fadeOut("slow");
});
$("#next, #back, #fullscreen").mouseenter(function() {
$(this).fadeTo("slow", 1);
$(this).stop().fadeTo("slow", 1);
});
$("#next, #back").mouseleave(function() {
$(this).fadeTo("slow", 0.35);
$(this).stop().fadeTo("slow", 0.35);
});
if ($.support.fullscreen) {
$("#fullscreen").show().click(function() {
$("#photo").fullScreen();
}).mouseleave(function() {
$(this).fadeTo("slow", 0.50);
$(this).stop().fadeTo("slow", 0.50);
});
}
$("#metadata-link").click(function() {