grantm / sudoku-web-app

A Sudoku web app - as used on SudokuExchange.com
GNU Affero General Public License v3.0
48 stars 22 forks source link

Time running backwards on solved puzzles #46

Closed jtmcdole closed 3 years ago

jtmcdole commented 3 years ago

Thrice now I've switched tabs on solved puzzles only to switch back and see the solve timer has gone in reverse by the same amount of time I've been away.

  1. Play a game
  2. Win
  3. Note timer
  4. Switch away for a couple of seconds and come back
  5. See timer is shorter than before.
grantm commented 3 years ago

Thanks for taking the time to report this.

It is a new feature of the most recent release that the timer is meant to pause when you switch away to another tab and then resume when you return. I had noticed that due to rounding errors, it's common for the timer to go backwards 1 second when it resumes.

Are you seeing the timer go more than one second backwards? If so can you please tell me a bit more about your setup - Operating system (Windows/MacOS/iOS/Android/Linux etc.) and browser (Firefox/Chrome/Edge/Safari etc.).

grantm commented 3 years ago

Ah, I see the problem - I missed the bit in your report where you said solved puzzles - Doh!

jtmcdole commented 3 years ago

Chrome browser on Windows 10. And it goes back way more than a second :)

grantm commented 3 years ago

The web app at https://sudokuexchange.com/play/ has been updated with the fix for this issue. Thanks again for reporting it.