Skip to content

Commit

Permalink
fix(vm) ensure scrolling a vm graphic console is propagated to the pa…
Browse files Browse the repository at this point in the history
…rent element, so the console content is scrolling on screens with low height. fixes #700

Signed-off-by: David Edler <[email protected]>
  • Loading branch information
edlerd authored and mas-who committed May 1, 2024
1 parent 1647a00 commit 21c466c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/instances/InstanceGraphicConsole.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const InstanceGraphicConsole: FC<Props> = ({
useEffect(handleResize, [notify.notification?.message]);

useEventListener("spice-wheel", (e) => {
if (!spiceRef.current?.parentElement || !Object.hasOwn(e, "detail")) {
if (!spiceRef.current?.parentElement || !("detail" in e)) {
return;
}
const wheelEvent = (e as SpiceWheelEvent).detail.wheelEvent;
Expand Down

0 comments on commit 21c466c

Please sign in to comment.