Skip to content

Commit

Permalink
๐Ÿ•ท +-๋ฒ„ํŠผ์— ๋งˆ์šฐ์Šค ํ˜ธ๋ฒ„๋ง์„ ํ’€๋ฉด ์žฌ์ƒ์ด ๋ฉˆ์ถ”๋Š” ๋ฒ„๊ทธ ํ•ด๊ฒฐ
Browse files Browse the repository at this point in the history
์กฐ๊ฑด๋ฌธ ์ถ”๊ฐ€
  • Loading branch information
alittlekitten committed Feb 15, 2022
1 parent 52ade92 commit 2494dfe
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/Timer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,11 @@ const Timer = () => {
}, [hour, minute, second]);

const offPress = () => {
setStatus("pause");
speed.current = 300;
clearTimeout(timeout.current);
if (status === "increase" || status === "decrease") {
setStatus("pause");
speed.current = 300;
clearTimeout(timeout.current);
}
};

const secondChange = (e) => {
Expand Down

0 comments on commit 2494dfe

Please sign in to comment.