Permalink
Browse files

Fix bug 644564 - Animation bug

Added stop() call on tip, arrow and callout before processing any animation, to abort any ongoing animation.
  • Loading branch information...
vivganes authored and rik committed Jul 29, 2012
1 parent d9b2862 commit 013043d9d8623509795b7eb3dd7ad70602181be5
Showing with 2 additions and 0 deletions.
  1. +2 −0 media/js/firefox/central.js
@@ -86,6 +86,7 @@ var gPlatformVista = navigator.userAgent.indexOf('Windows NT 6.0') !=-1
var $tip = $this.find('.tip');
var left = parseInt($tip.data("left"), 10);
var top = parseInt($tip.data("top"), 10);
$this.children('.arrow, .tip, .callout').stop();
$tip.css({'left': left, 'top': top})
.animate({'opacity': 1}, 300);
$this.children('.arrow')
@@ -95,6 +96,7 @@ var gPlatformVista = navigator.userAgent.indexOf('Windows NT 6.0') !=-1
}).bind('mouseleave focusout', function (e) {
var $this = $(this);
var $tip = $this.find('.tip');
$this.children('.arrow, .tip, .callout').stop();
$this.children('.arrow, .tip')
.animate({'opacity': 0}, 300, function () {
$tip.css({'left': -999, 'top': 0});

0 comments on commit 013043d

Please sign in to comment.