infinitechess.org
infinitechess.org copied to clipboard
Bug- AFK timer not resetting on mobile
On mobile, if you go afk long enough, when it's your turn, for the 20s afk-auto-resign timer to kick in, then sometimes if you quick-tap the pieces to move them, being careful to NOT drag the board at all, you can make your move without resetting that timer, and end up losing by disconnection even though it's not your turn anymore.
Lead: Perhaps touch-start events don't reset the timer client-side, but only touch-move events? I could see a rapid tap firing the start event but not the move one. Look inside input.js