Browse Source

Update src/components/popout/positions/FloatingCardMobilePosition.tsx

pull/260/head
Jip Frijlink 3 years ago committed by GitHub
parent
commit
fcb24c783c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/components/popout/positions/FloatingCardMobilePosition.tsx

1
src/components/popout/positions/FloatingCardMobilePosition.tsx

@ -33,7 +33,6 @@ export function FloatingCardMobilePosition(props: MobilePositionProps) {
const isInScrollable = (event.target as HTMLDivElement).closest( const isInScrollable = (event.target as HTMLDivElement).closest(
".overflow-y-auto" ".overflow-y-auto"
); );
// console.log(my);
if (isInScrollable) return; // Don't attempt to swipe the thing away if it's a scroll area unless the scroll area is at the top and the user is swiping down if (isInScrollable) return; // Don't attempt to swipe the thing away if it's a scroll area unless the scroll area is at the top and the user is swiping down
const height = cardRect?.height ?? 0; const height = cardRect?.height ?? 0;

Loading…
Cancel
Save