Skip to content

Commit

Permalink
Don't omit the margin on rightward scroll (#110 #271 #318 #62 #106)
Browse files Browse the repository at this point in the history
Omitting that margin prevents the browser address bar from showing the
actual route.
  • Loading branch information
jgonggrijp committed Aug 13, 2020
1 parent 4525326 commit 11f1853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/explorer/explorer-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default class ExplorerView extends View {
const thisLeft = this.$el.scrollLeft();
const thisRight = this.getMostRight();
const stackLeft = stack.getLeftBorderOffset();
const stackRight = stack.getRightBorderOffset();
const stackRight = stackLeft + stack.getWidth();
let scrollTarget;
if (stackRight - thisLeft < scrollFudge) {
scrollTarget = stackLeft;
Expand Down

0 comments on commit 11f1853

Please sign in to comment.