Skip to content

Commit

Permalink
added check for mouse exit
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen-Gordon committed Apr 16, 2024
1 parent e3fc739 commit 8ff4711
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/components/ProgressButton/ProgressButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ const ProgressButton = ({onComplete} : ProgressButtonProps) => {
}}
data-vaul-no-drag=''
className='bg-background w-full rounded-xl border'
whileHover={{ scale: 1.1 }}
whileTap={{ scale: 0.9 }}

whileTap={{ scale: 0.95, transition: { duration: 0.1, ease: 'easeInOut'} }}
onTapStart={handleHoldStart}
onTap={handleHoldEnd}
onMouseLeave={() => {
Expand Down

0 comments on commit 8ff4711

Please sign in to comment.