-
Notifications
You must be signed in to change notification settings - Fork 208
Row (and frame) lock options for multi-rows #191
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
Comments
You can bind to $('#my_image').reel({
// business as usual
});
var desiredRow = 2;
$('#my_image').bind('rowChange', function(e, nothing, row){
if (row != desiredRow){
$('#my_image').reel('row', desiredRow);
}
}); However, a useful option it would be, row lock and similarly frame lock too. This is however an API change, so first chance is the next minor release 1.3. |
…allowing only for programmatic frame change. #191
Two new options to help you (and others of course!) achieve a lock of frame or row in multirow movies (not limited to multirow at all) - $('#my_image').reel('row', 2);
// or
$('#my_image').reel('frame', 5); Please note, that even despite This involved an API change so this will land in 1.3. In the meantime please use code from the gh-191-locks branch. |
@pisi Very nice. But imagine situation when on your page you have 2 instances of reel that use one source, but for the first inst. you need to show only first row, for second one you need to show all rows but starts from 2 row(only restrict to show 1 row). Like before/after simulation with one source P.S |
In such an edge case, lock like this won't help any you will have resort to one of the following:
|
Released today as part of v1.3.0 |
Split from #190 by @gnatok:
The text was updated successfully, but these errors were encountered: