зеркало из https://github.com/mozilla/gecko-dev.git
Bug 633279 - 1px of checkerboarding between address bar and web page [r=stechz]
--HG-- extra : rebase_source : d0aa1401dfa9ef8eb81f74e0f7e6c1bff44a7045
This commit is contained in:
Родитель
5645e983f5
Коммит
d485520ca2
|
@ -1007,8 +1007,8 @@
|
||||||
let scrollRangeX = contentSize.width - viewportSize.width;
|
let scrollRangeX = contentSize.width - viewportSize.width;
|
||||||
let scrollRangeY = contentSize.height - viewportSize.height;
|
let scrollRangeY = contentSize.height - viewportSize.height;
|
||||||
|
|
||||||
x = Math.floor(Math.max(0, Math.min(scrollRangeX, contentView.scrollX + x)) - contentView.scrollX);
|
x = Math.floor(Math.max(0, Math.min(scrollRangeX, contentView.scrollX + x))) - contentView.scrollX;
|
||||||
y = Math.floor(Math.max(0, Math.min(scrollRangeY, contentView.scrollY + y)) - contentView.scrollY);
|
y = Math.floor(Math.max(0, Math.min(scrollRangeY, contentView.scrollY + y))) - contentView.scrollY;
|
||||||
|
|
||||||
if (x == 0 && y == 0)
|
if (x == 0 && y == 0)
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -1191,10 +1191,10 @@ Browser.MainDragger.prototype = {
|
||||||
|
|
||||||
// Any leftover panning in doffset would bring controls into view. Add to sidebar
|
// Any leftover panning in doffset would bring controls into view. Add to sidebar
|
||||||
// away panning for the total scroll offset.
|
// away panning for the total scroll offset.
|
||||||
let offsetX = Math.round(doffset.x);
|
let offsetX = doffset.x;
|
||||||
if ((this._stopAtSidebar > 0 && offsetX > 0) ||
|
if ((this._stopAtSidebar > 0 && offsetX > 0) ||
|
||||||
(this._stopAtSidebar < 0 && offsetX < 0)) {
|
(this._stopAtSidebar < 0 && offsetX < 0)) {
|
||||||
if (offsetX != Math.round(panOffset.x))
|
if (offsetX != panOffset.x)
|
||||||
this._hitSidebar = true;
|
this._hitSidebar = true;
|
||||||
doffset.x = panOffset.x;
|
doffset.x = panOffset.x;
|
||||||
} else {
|
} else {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче