jporter-dev / codewords

162 stars 39 forks source link

Clicking on the timer multiple times causes the timer to speed up #59

Closed Gonzom closed 4 years ago

Gonzom commented 4 years ago

Describe the bug Clicking on the timer multiple times causes the timer to speed up like a bomb in a movie.

To Reproduce Steps to reproduce the behavior:

  1. Start a game
  2. Click on timer
  3. Click "Start Time"
  4. Notice seconds pass
  5. Click on timer again
  6. Click "Start Time" again
  7. Notice seconds pass faster
  8. Repeat 5-7 over and over again and see how it speeds up
  9. Resetting the clock does not fix this

Expected behavior Either an option to click on "Start Time" when the timer is on should not be available, or it should be switched to "Pause Time".

Desktop (please complete the following information):

jporter-dev commented 4 years ago

Appreciate the bug report - I know exactly what's causing this and will try to fix it by tomorrow. And good call with the pause button!

jporter-dev commented 4 years ago

Pushed out the fix today. Should toggle between Play and Pause, and if it receives the "start_timer" command twice it will not double up.