diff options
author | Joris Guyonvarch | 2015-03-16 21:10:07 +0100 |
---|---|---|
committer | Joris Guyonvarch | 2015-03-16 21:10:07 +0100 |
commit | 36cb1d0392f4d32a4eed50ef2cc098dc90bb44e1 (patch) | |
tree | 7040924025231ddedf42555129bb310043185e4d /src/Update/UpdateTimer.elm | |
parent | 1cfd5e02bbd92f54a6b888d475f9f3002f3763bb (diff) |
Initial time is 999 ms more than it has to be in order to see for 999 ms the initial time
Diffstat (limited to 'src/Update/UpdateTimer.elm')
-rw-r--r-- | src/Update/UpdateTimer.elm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Update/UpdateTimer.elm b/src/Update/UpdateTimer.elm index 771ef1c..b3be088 100644 --- a/src/Update/UpdateTimer.elm +++ b/src/Update/UpdateTimer.elm @@ -18,10 +18,11 @@ updateTimer action timer = { timer | isRunning <- not timer.isRunning } Restart -> { timer - | currentTime <- timer.initialTime + | isRunning <- True + , currentTime <- initTime timer.initialTime } Stop -> { timer | isRunning <- False - , currentTime <- timer.initialTime + , currentTime <- initTime timer.initialTime } |