From 8b7d41937ee527b8574f90d2eade385033ffae0a Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 19 Apr 2012 20:17:12 +0200 Subject: [PATCH] Stop previous fades on next fade. Thanks artcfox. --- web/js/011-display.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/js/011-display.js b/web/js/011-display.js index ff2d2d4..b7966e9 100644 --- a/web/js/011-display.js +++ b/web/js/011-display.js @@ -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() {