Skip to content

Conversation

@krmbn0576
Copy link
Collaborator

@krmbn0576 krmbn0576 commented Oct 12, 2018

If you first start the game with the mobile safari user agent and later change it to another user agent, the rendering stops and the game hangs up.

The cause is that this._accumulator would be NaN because this._currentTime is undefined.

Fixed!

Copy link
Contributor

@Sigureya Sigureya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK
=== Using undefined is intentional.
It is not good with isNaN ().

@krmbn0576 krmbn0576 merged commit 483ac0c into master Oct 15, 2018
@krmbn0576 krmbn0576 deleted the fix_ua_change branch October 15, 2018 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants