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

Move selected subtitle to top of selection menu #1605

Merged
merged 2 commits into from
Mar 11, 2024

Conversation

1hitsong
Copy link
Member

Changes

Puts the currently selected subtitle track at the top of the subtitle dialog selection options.

We're unable to set cursor focus to the item when we show the dialog, though the track's radio button is preselected. For videos with a lot of subtitles, this can cause the selected track to not show without scrolling down to find it.

This ensures the selected subtitle track is seen by the user without requiring them to first scroll.

@1hitsong 1hitsong requested a review from a team as a code owner December 30, 2023 00:31
@1hitsong 1hitsong added the new-feature A new feature that currently doesn't exist. label Dec 30, 2023
@jellyfin-bot
Copy link
Contributor

This pull request has been inactive for 21 days and will be automatically closed in 7 days if there is no further activity.

@jellyfin-bot jellyfin-bot added the stale This issue/PR has gone stale. label Jan 21, 2024
@1hitsong 1hitsong removed the stale This issue/PR has gone stale. label Jan 23, 2024
@jellyfin-bot
Copy link
Contributor

This pull request has been inactive for 21 days and will be automatically closed in 7 days if there is no further activity.

@jellyfin-bot jellyfin-bot added the stale This issue/PR has gone stale. label Feb 14, 2024
@cewert
Copy link
Member

cewert commented Feb 14, 2024

What do you think about None always being at the top with the selected subtitle always 2nd right under it so we know it's visible to the user? The consistency of None being at the top would be better IMO.

@cewert cewert removed the stale This issue/PR has gone stale. label Feb 14, 2024
@1hitsong
Copy link
Member Author

I wouldn't mind that, if we could make the cursor start from the currently selected item, which I can't.

No matter what, the cursor will always be on the 1st item in the list. IMO it makes sense for the cursor to start on the selected item, then the user's input changes it.

With None being first, the cursor starts on None, but the selected subtitle will be in position 2. It really messes with the UX.

@cewert
Copy link
Member

cewert commented Feb 16, 2024

With None being first, the cursor starts on None, but the selected subtitle will be in position 2. It really messes with the UX.

I don't understand how that messes with UX. Why does the currently selected item need to be at the top when we have the radio button to tell the user which option is selected?

The most common use case in my mind for opening the CC dialog when subs are already turned on, would be to turn them back off. So we always keep the CC options in the same order which makes the dialog more intuitive (None is always at top regardless if you have 0 subtitles, subs turned on etc.) and also keeps one of the most common user actions for that dialog at the top and easiest to get to (turning subs off).

@1hitsong
Copy link
Member Author

This video shows an example of why I want to move the active subtitle to the top. The user must scroll down to see what's active 🤮. With this PR, the active subtitle will be at the top of the list, and when shown, the user's cursor will be focused on the selected subtitle. There can be no confusion, to change the subtitle they must press down and select something else.

If the active subtitle were 2nd, then the user's cursor would be focused on a new, different option. The UX in that case would allow them to change the selected subtitle having never pressed up/down to actively select a different subtitle.

subtitleSelect.mp4

@cewert
Copy link
Member

cewert commented Feb 23, 2024

This video shows an example of why I want to move the active subtitle to the top. The user must scroll down to see what's active 🤮

I agree that the currently selected subtitles should somehow be visible to the user when the dialog is opened.

If the active subtitle were 2nd, then the user's cursor would be focused on a new, different option. The UX in that case would allow them to change the selected subtitle having never pressed up/down to actively select a different subtitle.

Correct, my suggestion means it would always be focused on "None". Users would be able to toggle subs off without hitting up/down but not actually change subtitles. If the user wanted to change subs they would still have to scroll past the first two entries in the list regardless whether "None" or the active subs are first in the list.

@1hitsong 1hitsong merged commit 97a2fee into jellyfin:master Mar 11, 2024
11 checks passed
@1hitsong 1hitsong deleted the moveSelectedSubtileToTop branch March 11, 2024 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-feature A new feature that currently doesn't exist.
Projects
Development

Successfully merging this pull request may close these issues.

4 participants