From be3b2549a55e0099c58fe3ebff31c73118087c72 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 21 Apr 2023 10:49:05 +0100 Subject: [PATCH] Use shift instead of ctrl/cmd for horizontal scrolling --- .../src/components/grid/layout/GridScrollWrapper.svelte | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/frontend-core/src/components/grid/layout/GridScrollWrapper.svelte b/packages/frontend-core/src/components/grid/layout/GridScrollWrapper.svelte index 0d241147a6..04f0960057 100644 --- a/packages/frontend-core/src/components/grid/layout/GridScrollWrapper.svelte +++ b/packages/frontend-core/src/components/grid/layout/GridScrollWrapper.svelte @@ -29,10 +29,7 @@ // Handles a wheel even and updates the scroll offsets const handleWheel = e => { e.preventDefault() - const modifier = e.ctrlKey || e.metaKey - let x = modifier ? e.deltaY : e.deltaX - let y = modifier ? e.deltaX : e.deltaY - debouncedHandleWheel(x, y, e.clientY) + debouncedHandleWheel(e.deltaX, e.deltaY, e.clientY) } const debouncedHandleWheel = domDebounce((deltaX, deltaY, clientY) => { const { top, left } = $scroll