diff options
Diffstat (limited to 'app/assets/javascripts/terminal')
-rw-r--r-- | app/assets/javascripts/terminal/terminal.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/terminal/terminal.js b/app/assets/javascripts/terminal/terminal.js index 9c7c10d9864..f4e546e4d4e 100644 --- a/app/assets/javascripts/terminal/terminal.js +++ b/app/assets/javascripts/terminal/terminal.js @@ -1,4 +1,4 @@ -import _ from 'underscore'; +import { throttle } from 'lodash'; import $ from 'jquery'; import { Terminal } from 'xterm'; import * as fit from 'xterm/lib/addons/fit/fit'; @@ -85,7 +85,7 @@ export default class GLTerminal { addScrollListener(onScrollLimit) { const viewport = this.container.querySelector('.xterm-viewport'); - const listener = _.throttle(() => { + const listener = throttle(() => { onScrollLimit({ canScrollUp: canScrollUp(viewport, SCROLL_MARGIN), canScrollDown: canScrollDown(viewport, SCROLL_MARGIN), |