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

Fix entering fullscreen, fixes #658 #659

Merged
merged 2 commits into from
Jun 5, 2017

Conversation

goto-bus-stop
Copy link
Member

Entering fullscreen must be done directly resulting from a user
gesture (eg. a click). Previously the Video component would request
fullscreen when it was rerendered with a different isFullscreen
prop, which worked because the UI was rerendered synchronously when
the fullscreen button was clicked.

Since #629 state changes do not cause synchronous rerenders anymore,
so the fullscreen request didn't occur as a direct result of the button
click.

This patch instead requests fullscreen immediately when the button is
clicked, and only then sends the ENTER_FULLSCREEN action into the
app's internal state.

Entering fullscreen must be done _directly_ resulting from a user
gesture (eg. a click). Previously the Video component would request
fullscreen when it was rerendered with a different `isFullscreen`
prop, which worked because the UI was rerendered synchronously when
the fullscreen button was clicked.

Since u-wave#629 state changes do not cause synchronous rerenders anymore,
so the fullscreen request didn't occur as a direct result of the button
click.

This patch instead requests fullscreen immediately when the button is
clicked, and only _then_ sends the ENTER_FULLSCREEN action into the
app's internal state.
@goto-bus-stop goto-bus-stop merged commit e1253e0 into u-wave:master Jun 5, 2017
This pull request was closed.
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.

1 participant