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: only change focus from BPB if not a mouse click #4523

Merged
merged 7 commits into from
Jul 26, 2017

Conversation

gkatsev
Copy link
Member

@gkatsev gkatsev commented Jul 26, 2017

5.x version of #4497

@gkatsev gkatsev added the 5.x label Jul 26, 2017
Copy link
Contributor

@brandonocasey brandonocasey left a comment

Choose a reason for hiding this comment

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

LGTM other than one comment

if (playPromise) {
playPromise.then(() => playToggle.focus());
} else {
this.setTimeout(function() {
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe store this function since it is used above? or just use the shorthand again?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah, might make sense. Ported this from master where it's written this way.

this.setTimeout(function() {
playToggle.focus();
}, 1);
if (playPromise) {
Copy link
Member

Choose a reason for hiding this comment

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

Should this duck-type the play promise (e.g. if (playPromise && playPromise.then) {)?

Copy link
Member Author

Choose a reason for hiding this comment

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

This was ported over from master, it's probably safer

@gkatsev gkatsev merged commit d90c945 into videojs:5.x Jul 26, 2017
@gkatsev gkatsev deleted the dont-bpb-focus-5.x branch July 26, 2017 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants