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 canonical#700
  • Loading branch information
edlerd committed Apr 29, 2024
1 parent 77f27b3 commit a7d1205
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 a7d1205

Please sign in to comment.