fixes/mobile-comparator #25

Merged
ilia merged 10 commits from fixes/mobile-comparator into main 2026-02-10 16:21:45 +00:00
Showing only changes of commit e1117667d2 - Show all commits

View File

@@ -4,6 +4,8 @@
-->
<script lang="ts">
import { cn } from '$shared/shadcn/utils/shadcn-utils';
import { cubicOut } from 'svelte/easing';
import { fade } from 'svelte/transition';
interface Props {
/**
@@ -27,6 +29,7 @@ let { sliderPos, isDragging }: Props = $props();
)}
style:left="{sliderPos}%"
style:will-change={isDragging ? 'left' : 'auto'}
in:fade={{ duration: 300, delay: 150, easing: cubicOut }}
>
<!-- We use part of lucide cursor svg icon as a handle -->
<svg