From f19ba2ea20f5dfb2acdcc3c3235c22da5ed3e747 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 2 Mar 2023 11:08:48 +0000 Subject: [PATCH] Improve scroll logic and handle horizontal wheel events --- .../src/components/sheet/ScrollOverlay.svelte | 75 ++++------- .../src/components/sheet/Sheet.svelte | 4 +- .../sheet/SheetScrollWrapper.svelte | 123 ++++-------------- .../src/components/sheet/stores/scroll.js | 78 +++++++++++ 4 files changed, 126 insertions(+), 154 deletions(-) create mode 100644 packages/frontend-core/src/components/sheet/stores/scroll.js diff --git a/packages/frontend-core/src/components/sheet/ScrollOverlay.svelte b/packages/frontend-core/src/components/sheet/ScrollOverlay.svelte index 7506318072..2362e0b29b 100644 --- a/packages/frontend-core/src/components/sheet/ScrollOverlay.svelte +++ b/packages/frontend-core/src/components/sheet/ScrollOverlay.svelte @@ -1,13 +1,20 @@ -
-
+
+