Skip to content

Commit

Permalink
Bug fix to first and previous frame buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie Lee committed May 11, 2016
1 parent 0bddc25 commit c8dbe7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,15 +267,15 @@ function startup() {
btnFramePrevious.addEventListener("click", function() {
if (curSelectedFrame > 1) {
_displayFrame(curSelectedFrame - 1);
} else if (winMode === "capture") {
} else if (winMode === "capture" && totalFrames) {
switchMode("playback");
_displayFrame(totalFrames);
}
});

// Preview first frame on framereel
btnFrameFirst.addEventListener("click", function() {
if (winMode === "capture") {
if (winMode === "capture" && totalFrames) {
switchMode("playback");
}
_displayFrame(1);
Expand Down

0 comments on commit c8dbe7d

Please sign in to comment.