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

Dice straying off the board from their initial positions when tabbed out of the game during others' turns #231

Open
mlevatich opened this issue Mar 10, 2021 · 0 comments
Assignees
Labels
bug A bug. front-end A front-end task.

Comments

@mlevatich
Copy link
Collaborator

Describe the bug
I usually run into this when I'm testing locally and switching between different tabs to control all of the players in a game at once. Over time, as I come back to each tab, the dice will have drifted upward on screen, continuing until they're no longer visible. This doesn't happen when I'm playing with others, so I assume it's a problem of being tabbed out while the game progresses.

Browser:

  • OS: MacOS
  • Browser Firefox

Additional context
I have no idea what causes this issue (I guess it's probably something to do with tweens, but I couldn't find anything on google). Potential band-aid solution is to have the onRoll() function in gameBoard.js also return dice to their original Y positions, like it does with their X positions.

@mlevatich mlevatich added the bug A bug. label Mar 10, 2021
@mlevatich mlevatich added the front-end A front-end task. label Mar 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug. front-end A front-end task.
Projects
None yet
Development

No branches or pull requests

2 participants