From 07b0e15aaa65f6c293a5113b784c3b5421d454f4 Mon Sep 17 00:00:00 2001 From: SHIMODA Hiroshi Date: Fri, 13 Jan 2012 12:28:13 +0900 Subject: [PATCH] suppress unexpected jumping of the tab bar more intelligently --- modules/browser.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/browser.js b/modules/browser.js index 23fe1eec..820cabbc 100644 --- a/modules/browser.js +++ b/modules/browser.js @@ -2524,12 +2524,12 @@ TreeStyleTabBrowser.prototype = { } this.clearLastScrollPosition(); - if (this.cancelingPerformingAutoScroll) return; + if (this.cancelingPerformingAutoScroll) + this.cancelingPerformingAutoScroll.cancel(); - this.cancelingPerformingAutoScroll = true; var self = this; - this.Deferred.wait(0.1).next(function() { - self.cancelingPerformingAutoScroll = false; + this.cancelingPerformingAutoScroll = this.Deferred.wait(0.3).next(function() { + self.cancelingPerformingAutoScroll = null; }); },