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

Previous function doesn't go all the way back to the first frame #23

Open
Jip-Hop opened this issue Aug 29, 2014 · 0 comments
Open

Previous function doesn't go all the way back to the first frame #23

Jip-Hop opened this issue Aug 29, 2014 · 0 comments

Comments

@Jip-Hop
Copy link

Jip-Hop commented Aug 29, 2014

I think the -1 in the code below is causing the problem. When using the previous button or the comma key on the keyboard in viewer.html the prev function is called. However, it only goes back as far as frame 2. I'm not sure but removing the -1 seems to correct the issue for me.

this.prev = function() {
    self.pause();

    if(_point_index-1 !== 0) {
        _point_index--;
        drawMaterial();
    }
};
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

No branches or pull requests

1 participant