diff --git a/frontend/src/explorer/explorer-view.ts b/frontend/src/explorer/explorer-view.ts index c074b86b..69563843 100644 --- a/frontend/src/explorer/explorer-view.ts +++ b/frontend/src/explorer/explorer-view.ts @@ -79,9 +79,9 @@ export default class ExplorerView extends View { const stackLeft = stack.getLeftBorderOffset(); const stackRight = stackLeft + stack.getWidth(); let scrollTarget; - if (stackRight - thisLeft < scrollFudge) { - scrollTarget = stackLeft; - } else if (thisRight - stackLeft < scrollFudge) { + if (stackRight - thisLeft < scrollFudge || + thisRight - stackLeft < scrollFudge + ) { scrollTarget = stackRight - $(window).width(); } else { if (callback) fastTimeout(callback);