suppress unexpected jumping of the tab bar more intelligently

This commit is contained in:
SHIMODA Hiroshi 2012-01-13 12:28:13 +09:00
parent 585ab07c48
commit 07b0e15aaa

View File

@ -2524,12 +2524,12 @@ TreeStyleTabBrowser.prototype = {
} }
this.clearLastScrollPosition(); this.clearLastScrollPosition();
if (this.cancelingPerformingAutoScroll) return; if (this.cancelingPerformingAutoScroll)
this.cancelingPerformingAutoScroll.cancel();
this.cancelingPerformingAutoScroll = true;
var self = this; var self = this;
this.Deferred.wait(0.1).next(function() { this.cancelingPerformingAutoScroll = this.Deferred.wait(0.3).next(function() {
self.cancelingPerformingAutoScroll = false; self.cancelingPerformingAutoScroll = null;
}); });
}, },