Skip to content

Commit

Permalink
Update to hterm 1.87
Browse files Browse the repository at this point in the history
  • Loading branch information
tbodt committed Mar 25, 2020
1 parent 5d312b4 commit 7c9bcde
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/terminal/libapps
Submodule libapps updated 120 files
5 changes: 4 additions & 1 deletion app/terminal/term.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,10 @@ term.scrollPort_.screen_.addEventListener('focus', (e) => native.syncFocus());

// scrolling
// Disable hterm builtin touch scrolling
term.scrollPort_.onTouch = (e) => false;
term.scrollPort_.onTouch = (e) => {
// Convince hterm that we called preventDefault() and that it shouldn't do more handling, but don't actually call it because that would break text selection
Object.defineProperty(e, 'defaultPrevented', true);
};
// Scroll to bottom wrapper
exports.scrollToBottom = () => term.scrollEnd();
// Set scroll position
Expand Down

0 comments on commit 7c9bcde

Please sign in to comment.