Skip to content

Commit

Permalink
Merge pull request #31 from mrlovables/fix-BottomSheet
Browse files Browse the repository at this point in the history
Optimize BottomSheet components sliding animation effect
  • Loading branch information
dufu1991 authored Oct 1, 2024
2 parents 1f07e58 + 3b822fe commit 28e7add
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/stdf/components/bottomSheet/BottomSheet.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script>
import { onMount, createEventDispatcher, getContext } from 'svelte';
import { fly } from 'svelte/transition';
import { throttle } from '../utils';
import { throttleWithRAF } from '../utils';
import zh_CN from '../../lang/zh_CN';
import Mask from '../mask/Mask.svelte';
Expand Down Expand Up @@ -355,7 +355,7 @@
>
<div
on:pointerdown={touchstartFun}
on:pointermove={throttle(touchmoveFun)}
on:pointermove={throttleWithRAF(touchmoveFun)}
on:pointerup={touchendFun}
bind:this={scrollTopDom}
class="py-1 touch-none cursor-move select-none"
Expand Down

0 comments on commit 28e7add

Please sign in to comment.