Skip to content

Commit

Permalink
fix: disable vortex component on firefox due very laggy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
daltonmenezes committed Sep 14, 2024
1 parent 439da21 commit e108361
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apps/web/src/components/ui/vortex.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,14 @@ export const Vortex = (props: VortexProps) => {
// eslint-disable-next-line
}, []);

if (typeof window === 'undefined') return null

/**
* Firefox has some issues with this component and becomes very laggy
* so we are disabling it for Firefox for now
* */
if (window.navigator.userAgent.includes('Firefox')) return null

return (
<div className={cn('relative h-full w-full', props.containerClassName)}>
<motion.div
Expand Down

0 comments on commit e108361

Please sign in to comment.