From a7d12058d800530716dbb2440e48f476944550ef Mon Sep 17 00:00:00 2001 From: David Edler Date: Tue, 30 Apr 2024 00:10:16 +0200 Subject: [PATCH] fix(vm) ensure scrolling a vm graphic console is propagated to the parent element, so the console content is scrolling on screens with low height. fixes #700 --- src/pages/instances/InstanceGraphicConsole.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/instances/InstanceGraphicConsole.tsx b/src/pages/instances/InstanceGraphicConsole.tsx index fab98364aa..434e32eb57 100644 --- a/src/pages/instances/InstanceGraphicConsole.tsx +++ b/src/pages/instances/InstanceGraphicConsole.tsx @@ -116,7 +116,7 @@ const InstanceGraphicConsole: FC = ({ 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;