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

Toggle reel #225

Closed
firewaller opened this Issue Sep 9, 2013 · 3 comments

Comments

Projects
None yet
2 participants
@firewaller

firewaller commented Sep 9, 2013

I'm combining reel and a zoom & pan plugin and would like to disable reel functionality on zoom to allow panning without rotation.

I've managed to change the frame back to the desired one after the fact with .bind('frameChange', function(e), but that produces an unpleasant frame stutter and can sometimes crash the page, even with throwable: false.

Is there any way to prevent a frame change or temporarily disable reel with a variable?

@pisi

This comment has been minimized.

Show comment
Hide comment
@pisi

pisi Sep 9, 2013

Owner

You'll welcome the two new locking options (#191) then - framelock for horizontal and rowlock for vertical axis - in the next release. Both are Boolean and false by default. Can be used as setup option or realtime data value change. When true it disables motion on respective axis, in effect holding the current frame or row until set false again.

For example to temporarily disable change of the frame of Reel setup on #my_image:

$("#my_image").reel("framelock", true );

You can try them now in the development branch

Owner

pisi commented Sep 9, 2013

You'll welcome the two new locking options (#191) then - framelock for horizontal and rowlock for vertical axis - in the next release. Both are Boolean and false by default. Can be used as setup option or realtime data value change. When true it disables motion on respective axis, in effect holding the current frame or row until set false again.

For example to temporarily disable change of the frame of Reel setup on #my_image:

$("#my_image").reel("framelock", true );

You can try them now in the development branch

@firewaller

This comment has been minimized.

Show comment
Hide comment
@firewaller

firewaller Sep 9, 2013

Wow! Exactly what I was looking for. I really appreciate the quick response and hard effort everybody has put into this project.

The other development features look great too. Thanks!

firewaller commented Sep 9, 2013

Wow! Exactly what I was looking for. I really appreciate the quick response and hard effort everybody has put into this project.

The other development features look great too. Thanks!

@pisi

This comment has been minimized.

Show comment
Hide comment
@pisi

pisi Sep 9, 2013

Owner

My pleasure :)

Owner

pisi commented Sep 9, 2013

My pleasure :)

@pisi pisi closed this Sep 9, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment