Pro Gallery onItemClicked & onCurrentItemChanged not working

Since you can’t set videos in progalleries through wixcode (though the code api documentation says you can), I was going to use a workaround by adding a seperate video element and hiding it when a certain item is clicked.

However, these events don’t fire at all and neither console.log messages, nor anything else in it works.

Here is the page in question: https://www.dennisvdharst.com/Portfolio/Ludum-Dare-41%3A-FishX-Brawl (still heavily under construction as you can see.)

Currently the code I have for the onCurrentItemChanged event is:

export function projectGallery_currentItemChanged(event, $w) {
//Add your code for this event here:
console.log(“Hey”);
let imageSRC = event.currentIndex;
if ( (imageSRC === 0 || 1) && (videos[imageSRC] !== undefined)) {
$w(“#video1”).show();
$w(“#video1”).videoUrl = videos[imageSRC];
}
else {
$w(“#video1”).hide();
}
console.log(“Click” + imageSRC);
}

And here’s the settings of the pro gallery:

I don’t suppose there’s another way to make an event like this work?

With kind regards,

Dennis van der Harst

Hi,
We’re aware of this issue and working on fixing it. We’ll update you once it is resolved.

Have a good day,
Tal.

Awesome Tal, thank you very much, I hope the fix will be an easy one that won’t require too much work!

I’ll be looking forward to hearing when it’s fixed.

Kind regards,

Dennis

Hi Tal

I just encountered the same issue, wanting to implement a little gallery app for a customer where the click on an image should display the url of the image in an html iframe.

Do you have any idea on how long the resolvement of the issue could take, or should i work on a workaround?

Thanks for the support.

Best regards, Mirco

Hey wix devs,

Excuse me, but has there been any update regarding this, it’s kind of interfering with how I would like to make my portfolio?

Kind regards,
Dennis

Following this… I got everything to work in the Editor… but nothing happens on the Live Site