Skip to content

Fix target for click on progress bar - #2836

Merged
hakimel merged 1 commit into
hakimel:devfrom
lechten:fix-progress-click
Nov 30, 2020
Merged

hakimel merged 1 commit into
hakimel:devfrom
lechten:fix-progress-click

Conversation

@lechten

@lechten lechten commented Nov 8, 2020

Copy link
Copy Markdown
Contributor

The progress bar shows how many slides have been passed in total.
However, when clicking on the progress bar, the target slide is
computed among the subset of /horizontal/ slides. Thus, when the new
slide is displayed, the progress bar has usually changed to a point
that is unrelated to the clicked one, which I find surprising.

With this change, the target slide is computed from the number of
total slides. Thus, after a click on the progress bar, the resulting
progress is close to the clicked point, which seems more natural to
me.

The progress bar shows how many slides have been passed in total.
However, when clicking on the progress bar, the target slide is
computed among the subset of /horizontal/ slides.  Thus, when the new
slide is displayed, the progress bar has usually changed to a point
that is unrelated to the clicked one, which I find surprising.

With this change, the target slide is computed from the number of
total slides.  Thus, after a click on the progress bar, the resulting
progress is close to the clicked point, which seems more natural to
me.
@hakimel
hakimel merged commit 49d043c into hakimel:dev Nov 30, 2020
@hakimel

hakimel commented Nov 30, 2020

Copy link
Copy Markdown
Owner

Nice improvement, thanks!

R0bes pushed a commit to R0bes/Terraform-Presentation that referenced this pull request Jun 7, 2021
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.

2 participants