Stop previous fades on next fade. Thanks artcfox.
This commit is contained in:
parent
4643b9cd9f
commit
8b7d41937e
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user