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

Toggle reel #225

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

Toggle reel #225

firewaller opened this issue Sep 9, 2013 · 3 comments

Comments

@firewaller
Copy link

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
Copy link
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
Copy link
Author

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
Copy link
Owner

pisi commented Sep 9, 2013

My pleasure :)

@pisi pisi closed this as completed Sep 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants