Skip to content

Commit

Permalink
Adding scrollIntoView when passing slides in outline mode 683dde8
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Reagle committed Jun 26, 2012
1 parent 9c37794 commit c805474
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions class.dzslides
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,9 @@ $endfor$
}
if (next) {
next.setAttribute("aria-selected", "true");
if (this.html.classList.contains("view")) {
next.scrollIntoView();
}
var video = next.$$("video");
if (video && !!+this.params.autoplay) {
video.play();
Expand Down
3 changes: 0 additions & 3 deletions template.html
Original file line number Diff line number Diff line change
Expand Up @@ -798,9 +798,6 @@ <h1>End!</h1>
next.scrollIntoView();
}
var video = next.$("video");
if (this.html.classList.contains("view")) {
next.scrollIntoView();
}
if (video && !!+this.params.autoplay) {
video.play();
}
Expand Down

0 comments on commit c805474

Please sign in to comment.