From bcf8a0ce1a3f4ccab01737741a22ecaf968daaff Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 29 Sep 2024 13:18:37 +0530 Subject: Fix favorites list swiper + draggable list issue --- src/components/Favorites.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/components/Favorites.tsx b/src/components/Favorites.tsx index 6ee99cb..ed81a6b 100644 --- a/src/components/Favorites.tsx +++ b/src/components/Favorites.tsx @@ -50,6 +50,9 @@ export const Favorites: React.FC<{active: boolean}> = (_) => { data={favoriteApps} onDragEnd={onDragEnd} keyExtractor={(app) => app.packageName} + activationDistance={10} + scrollEnabled + renderPlaceholder={() => } renderItem={({item: app, drag, isActive}) => ( @@ -57,20 +60,19 @@ export const Favorites: React.FC<{active: boolean}> = (_) => { className={`flex-row justify-stretch items-center ${ isActive ? 'bg-[#181818] opacity-60' : '' }`}> - - - + className="pr-2 py-3"> + + + )} - renderPlaceholder={() => } /> ); -- cgit v1.3.1