Skip to content

Commit

Permalink
Increased big text frames to size 6
Browse files Browse the repository at this point in the history
That's that frames 6 times as big as the TTY are passed at once. This
lessens the likelihood of catching a glimpse of unparsed webpage as
you're scrolling down quickly.
  • Loading branch information
tombh committed Jun 3, 2018
1 parent 02bc0aa commit cc23f0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webext/src/dom/dimensions.js
Expand Up @@ -11,16 +11,16 @@ export default class extends utils.mixins(CommonMixin) {
// character.
this._measuring_box_id = 'browsh_em_measuring_box';

// TODO: WTF is this magic number?
if (TEST) {
this._char_height_magic_number = 0;
} else {
// TODO: WTF is this magic number?
this._char_height_magic_number = 4;
}

// This is the region outside the visible area of the TTY that is pre-parsed and
// sent to the TTY to be buffered to support faster scrolling.
this._big_sub_frame_factor = 3;
this._big_sub_frame_factor = 6;

this.dom = {};
this.tty = {};
Expand Down

0 comments on commit cc23f0a

Please sign in to comment.