Skip to content

Commit

Permalink
fix: detect release to start timer on tap
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanlundberg committed Jan 1, 2024
1 parent 0fd1bce commit cc23a81
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/timer/TimerWidgets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function TimerWidgets() {
const { isSolving, timerStatus } = useTimerStore();
const { lang, settings } = useSettingsModalStore();
const { global, session } = useTimerStatistics();
if (isSolving || timerStatus !== "IDLE") return null;

return (
<>
<div className="flex flex-col gap-1" id="touch">
Expand All @@ -25,7 +25,11 @@ export default function TimerWidgets() {
</div>
</div>
) : null}
<div className="flex items-center justify-between w-full h-20 text-xs sm:h-20 md:h-24 lg:h-32 md:text-sm">
<div
className={`items-center justify-between w-full h-20 text-xs sm:h-20 md:h-24 lg:h-32 md:text-sm ${
isSolving || timerStatus !== "IDLE" ? "hidden" : "flex"
}`}
>
<OverviewPanel />
<ScramblePanel />
<StatisticsPanel />
Expand Down

0 comments on commit cc23a81

Please sign in to comment.