Topic: getImageIndex() does not change when expanded in full screen [SOLVED]

Steps to reproduce
1. Expand gallery to full screen.
2. Navigate to another image.
3. Trigger the getImageIndex() API method.

Expected result: getImageIndex() should return the index of the current image visible in full screen mode.

Actual result: getImageIndex() returns the index of the image last active before expanding to full screen mode, and it doesn't change until you exit full screen mode.

Re: getImageIndex() does not change when expanded in full screen [SOLVED]

Thank you for reporting this problem.
I have logged a bug report with the developers and it should hopefully be fixed in the next version.

In the meantime, if you need to find the current image index within the onImageChange function, you can do so with the following code, where e.id is the current image index.

jb = new juicebox({
    containerId: 'juicebox-container',
    galleryWidth: '600',
    galleryHeight: '400'
});
jb.onImageChange = function(e) {
    alert(e.id);
};

Re: getImageIndex() does not change when expanded in full screen [SOLVED]

Perfect. Thanks, Steven!