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 disable user-selection on sliders #4354

Merged
merged 2 commits into from
May 15, 2017

Conversation

gkatsev
Copy link
Member

@gkatsev gkatsev commented May 12, 2017

No description provided.

@@ -18,6 +18,8 @@
.vjs-modal-dialog .vjs-modal-dialog-content {
@extend %fill-parent;

@include user-select(auto);
Copy link
Member

Choose a reason for hiding this comment

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

Why wasn't this user selectable to being with?

Copy link
Member Author

Choose a reason for hiding this comment

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

We're disabling user-selection on the player div so that it doesn't get highlighted if you're dragging the progress bar. For whatever reason, even though, it's not supposed to be inherited, it applies on this element.

Copy link
Member

Choose a reason for hiding this comment

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

mdn says it "applies to subelements", though it's not inherited. Is this something we need to worry about more broadly?

Copy link
Member

Choose a reason for hiding this comment

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

A thought: what about if we just disabled user selection on the progress bar if that's what we're trying to guard against?

@gkatsev gkatsev changed the title fix: allow modal content to be selectable fix: only disable user-selection on sliders May 12, 2017
Copy link
Member

@misteroneill misteroneill left a comment

Choose a reason for hiding this comment

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

Tested and working.

@gkatsev gkatsev merged commit cb6005e into videojs:master May 15, 2017
@gkatsev gkatsev deleted the modal-selection branch May 15, 2017 16:04
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