showcase gallery index

Hi,

The index of the selected item is inconsistent in showcase gallery.

CODE:
$w(“#timeLine”).onCurrentItemChanged((event, $w) => {
console.log(“gallery index: " + $w(”#timeLine").currentIndex);
console.log(“dataset index: " + $w(”#datasetTimeLine").getCurrentItemIndex());

This is what I get after selecting an item, then another item, and then the 1st item again:
gallery index: 0
dataset index: 0
gallery index: 4
dataset index: 4
gallery index: 5
dataset index: 5

Any idea?
Many thanks:)
Dafna

Hi Dafna,

Can Link me your website to have a look at it ?
Thanks,

Mustafa

https://leitersbelz.wixsite.com/leiters-prototype/home

Look at the timeline gallery

manythanks:)

Hi Dafna,
I was unable to locate the gallery you were referring. In order for us to successfully review this matter further and properly assist you, please send us a video of the issue using screencast . Simply recreate the issue while recording the steps and add the screencast.com URL to your response.

Thanks,
Tal.