From 8ff4711931253254c13800c7b1eaeb2cc7dd4e09 Mon Sep 17 00:00:00 2001 From: Stephen Gordon Date: Tue, 16 Apr 2024 13:03:05 +0100 Subject: [PATCH] added check for mouse exit --- src/app/components/ProgressButton/ProgressButton.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/components/ProgressButton/ProgressButton.tsx b/src/app/components/ProgressButton/ProgressButton.tsx index 2e50ecf..8244785 100644 --- a/src/app/components/ProgressButton/ProgressButton.tsx +++ b/src/app/components/ProgressButton/ProgressButton.tsx @@ -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={() => {