Skip to content

Commit

Permalink
Scrolling bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie Lee committed May 14, 2016
1 parent ba98431 commit 34c8439
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ function _frameReelScroll() {
frameReelArea.scrollLeft = 0;
} else if (curPlayFrame + 1 !== totalFrames) {
// Scroll so currently played frame is in view
document.querySelector(`.frame-reel-img#img-${curPlayFrame + 2}`).scrollIntoView();
document.querySelector(`.frame-reel-img#img-${curPlayFrame + 1}`).scrollIntoView();
} else {
// Scroll to end when playback has stopped
frameReelArea.scrollLeft = frameReelArea.scrollWidth;
Expand Down

0 comments on commit 34c8439

Please sign in to comment.