diff --git a/src/components/ui/scroll-area/scroll-area-scrollbar.svelte b/src/components/ui/scroll-area/scroll-area-scrollbar.svelte new file mode 100644 index 0000000..cf62070 --- /dev/null +++ b/src/components/ui/scroll-area/scroll-area-scrollbar.svelte @@ -0,0 +1,44 @@ + + +{#if !$hasPrimaryTouch} + + {@render children?.()} + + +{/if} diff --git a/src/components/ui/scroll-area/scroll-area.svelte b/src/components/ui/scroll-area/scroll-area.svelte new file mode 100644 index 0000000..3e0b10a --- /dev/null +++ b/src/components/ui/scroll-area/scroll-area.svelte @@ -0,0 +1,141 @@ + + +{#if $hasPrimaryTouchStore} +
+
+ {@render children?.()} +
+ + {#if maskHeight > 0} + {/if} +
+{:else} + + + {@render children?.()} + + + {#if maskHeight > 0} + + {/if} + + {#if orientation === "vertical" || orientation === "both"} + + {/if} + + {#if orientation === "horizontal" || orientation === "both"} + + {/if} + + +{/if}