Bug 637936 (followup) - Fix variable name collision [r=mfinkle]

This commit is contained in:
Matt Brubeck 2011-03-02 17:30:59 -08:00
parent f20818bbab
commit a0481fa6fc

View File

@ -1191,10 +1191,10 @@ Browser.MainDragger.prototype = {
// Any leftover panning in doffset would bring controls into view. Add to sidebar
// away panning for the total scroll offset.
let dx = Math.round(doffset.x);
if ((this._stopAtSidebar > 0 && dx > 0) ||
(this._stopAtSidebar < 0 && dx < 0)) {
if (dx != Math.round(panOffset.x))
let offsetX = Math.round(doffset.x);
if ((this._stopAtSidebar > 0 && offsetX > 0) ||
(this._stopAtSidebar < 0 && offsetX < 0)) {
if (offsetX != Math.round(panOffset.x))
this._hitSidebar = true;
doffset.x = panOffset.x;
} else {