Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug- AFK timer not resetting on mobile #231

Open
Naviary2 opened this issue Aug 22, 2024 · 1 comment
Open

Bug- AFK timer not resetting on mobile #231

Naviary2 opened this issue Aug 22, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Naviary2
Copy link
Member

Naviary2 commented Aug 22, 2024

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

@Naviary2 Naviary2 added the bug Something isn't working label Aug 22, 2024
@Naviary2
Copy link
Member Author

Naviary2 commented Sep 3, 2024

You can replicate this on desktop as well by clicking your pieces without moving the mouse a single pixel, the act of clicking/tapping doesn't reset the timer the same as movement does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant