@@ -354,18 +354,6 @@ const TerminalView = ({ blockId, model }: ViewComponentProps<TermViewModel>) =>
354354 }
355355 } , [ isMI , isBasicTerm , isFocused ] ) ;
356356
357- const scrollbarHideObserverRef = React . useRef < HTMLDivElement > ( null ) ;
358- const onScrollbarShowObserver = React . useCallback ( ( ) => {
359- const termViewport = viewRef . current . getElementsByClassName ( "xterm-viewport" ) [ 0 ] as HTMLDivElement ;
360- termViewport . style . zIndex = "var(--zindex-xterm-viewport-overlay)" ;
361- scrollbarHideObserverRef . current . style . display = "block" ;
362- } , [ ] ) ;
363- const onScrollbarHideObserver = React . useCallback ( ( ) => {
364- const termViewport = viewRef . current . getElementsByClassName ( "xterm-viewport" ) [ 0 ] as HTMLDivElement ;
365- termViewport . style . zIndex = "auto" ;
366- scrollbarHideObserverRef . current . style . display = "none" ;
367- } , [ ] ) ;
368-
369357 const stickerConfig = {
370358 charWidth : 8 ,
371359 charHeight : 16 ,
@@ -388,20 +376,13 @@ const TerminalView = ({ blockId, model }: ViewComponentProps<TermViewModel>) =>
388376
389377 return (
390378 < div className = { clsx ( "view-term" , "term-mode-" + termMode ) } ref = { viewRef } onContextMenu = { handleContextMenu } >
391- { termBg && < div className = "absolute inset-0 z-0 pointer-events-none" style = { termBg } /> }
379+ { termBg && < div key = "term-bg" className = "absolute inset-0 z-0 pointer-events-none" style = { termBg } /> }
392380 < TermResyncHandler blockId = { blockId } model = { model } />
393381 < TermThemeUpdater blockId = { blockId } model = { model } termRef = { model . termRef } />
394382 < TermStickers config = { stickerConfig } />
395383 < TermToolbarVDomNode key = "vdom-toolbar" blockId = { blockId } model = { model } />
396384 < TermVDomNode key = "vdom" blockId = { blockId } model = { model } />
397- < div key = "conntectElem" className = "term-connectelem" ref = { connectElemRef } >
398- < div className = "term-scrollbar-show-observer" onPointerOver = { onScrollbarShowObserver } />
399- < div
400- ref = { scrollbarHideObserverRef }
401- className = "term-scrollbar-hide-observer"
402- onPointerOver = { onScrollbarHideObserver }
403- />
404- </ div >
385+ < div key = "connect-elem" className = "term-connectelem" ref = { connectElemRef } />
405386 < NullErrorBoundary debugName = "TermLinkTooltip" >
406387 < TermLinkTooltip termWrap = { termWrapInst } />
407388 </ NullErrorBoundary >
0 commit comments