Skip to content

Commit

Permalink
only bugs on safari.. trying another
Browse files Browse the repository at this point in the history
  • Loading branch information
k2xl committed May 20, 2024
1 parent 7b1cb8d commit d1cc150
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions components/home/tutorialPathology.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -660,17 +660,21 @@ export default function TutorialPathology() {

if (nextId) {
nextId.classList.add('bg-orange-300');
nextId.classList.add('bounce');
nextId.classList.add('animate-bounce');
setTimeout(() => {
const nextId = document.getElementById('control-next') as HTMLButtonElement;

if (!isNextButtonDisabled && !nextId.classList.contains('pointer-events-none')) {
nextId.classList.remove('invisible');
nextId.classList.add('bg-orange-300');
nextId.classList.add('animate-bounce');
// have nextId delay animation by 1s
nextId.style.animationDelay = '2s';
} else {
// remove
nextId.classList.add('invisible');
}
}, 1);
}, 30);
}
}, 30);
}, [isNextButtonDisabled, tutorialStep.gameGrid, tutorialStep.isNextButtonDisabled, tutorialStepIndex, tutorialStepIndexMax]);
Expand Down

0 comments on commit d1cc150

Please sign in to comment.