Skip to content

Commit

Permalink
Hide List if dragged down when closed
Browse files Browse the repository at this point in the history
  • Loading branch information
Albermonte committed Sep 5, 2023
1 parent d373c80 commit ce7fed6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/elements/MobileList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ watch(cards, (newCards, oldCards) => {
<ul
ref="scrollRoot"
class="flex items-end w-full overflow-x-auto hide-scrollbar snap-x snap-mandatory gap-x-3 scroll-mx-[var(--spacing)] pointer-events-none"
:style="`--spacing: ${(1 - progress) * INITIAL_GAP_TO_SCREEN}px`"
:style="`--spacing: ${(1 - Math.max(progress, 0)) * INITIAL_GAP_TO_SCREEN}px`"
>
<li
v-for="location in locations" :key="location.uuid"
Expand Down

0 comments on commit ce7fed6

Please sign in to comment.