waveterm/frontend/app
Evan Simkowitz b7a5dea0a0
Fix Term Widget not registering pointer events (#1614)
This is a bit janky. The problem is that we were placing the
`xterm-viewport` div, which contains the scroll observer for the xterm
contents, at a higher z-index than the xterm contents, meaning that the
contents couldn't register any pointer events. If we don't put a
z-index, though, the scroll bar can't accept pointer events. To get
around this, I've added two observer divs, which control whether the
contents or the viewport have pointer event priority. The first div, the
`term-scrollbar-show-observer`, sits above where the scrollbar will be
rendered. When the user hovers over it, it will cause the viewport div
to move to a z-index above the contents. It will also enable a second
div, the `term-scrollbar-hide-observer`, which sits above the viewport
and the term contents, but not blocking the scrollbar. When the user
hovers over this div (indicating their mouse has left the scrollbar),
the viewport div is moved back to its original z-index and the hide
observer is set to `display: none`. This gives pointer event priority
back to the contents div.

This resolves an issue where the user could not click links in the
terminal output.

Resolves #1357
2024-12-23 23:35:51 -05:00
..
asset workspace switcher + new elements (in storybook) (#1148) 2024-10-27 13:22:06 -07:00
block Fix iconbutton styling (#1538) 2024-12-16 18:31:01 -08:00
element Search box component (#1579) 2024-12-19 13:49:48 -08:00
hook browser view (#1005) 2024-10-17 14:34:02 -07:00
modals Make TOS modal buttons larger (#1573) 2024-12-19 12:16:03 -08:00
notification Oops i actually made the tabs wrong (#1384) 2024-12-04 13:49:14 -08:00
store Rename outdated WaveAI types (#1609) 2024-12-23 10:55:04 -08:00
tab Allow empty workspace name while editing workspace (#1592) 2024-12-20 08:55:28 -08:00
view Fix Term Widget not registering pointer events (#1614) 2024-12-23 23:35:51 -05:00
workspace Oops i actually made the tabs wrong (#1384) 2024-12-04 13:49:14 -08:00
app-bg.tsx browser view (#1005) 2024-10-17 14:34:02 -07:00
app.scss wsh run (#1376) 2024-12-04 14:16:50 -08:00
app.tsx Switch from Less to Scss (#1335) 2024-11-21 16:05:04 -08:00
mixins.scss Oops i actually made the tabs wrong (#1384) 2024-12-04 13:49:14 -08:00
reset.scss Oops i actually made the tabs wrong (#1384) 2024-12-04 13:49:14 -08:00
theme.scss Search box component (#1579) 2024-12-19 13:49:48 -08:00