Skip to content

Commit 8d1f333

Browse files
committed
updatemenus: fix positioning of scrollbars
* Do not assume that only one of the scrollbars is present.
1 parent 7057bc7 commit 8d1f333

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/updatemenus/scrollbox.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,12 +375,12 @@ ScrollBox.prototype.setTranslate = function setTranslate(xf, yf) {
375375
if(this._hbar) {
376376
this._hbar.call(Lib.setTranslate,
377377
translateX + xf * this._hbarTranslateMax,
378-
0);
378+
translateY);
379379
}
380380

381381
if(this._vbar) {
382382
this._vbar.call(Lib.setTranslate,
383-
0,
383+
translateX,
384384
translateY + yf * this._vbarTranslateMax);
385385
}
386386
};

0 commit comments

Comments
 (0)