Part of my Wix code does not work in Google Chrome, no errors on console, also the problem only presents on a live site, everything is fine in Preview using Chrome.
Is there a way to disable that part based on the browser used?
That would be the quickfix, but if there’s something I could to to fix the original problem that would be far more preferable.
Here’s the code I have a problem with on andarvr.com
$w.onReady(function () {
if(wixWindow.formFactor === "Desktop")
{
$w("#projectCard").onMouseIn( (event, $w) => {
$w("#itemEffectBox").show();
});
$w("#projectCard").onMouseOut( (event, $w) => {
$w("#itemEffectBox").hide();
});
hideHeaderMenu();
}
else
{
$w("#itemEffectBox").collapse();
$w("#itemEffectBox").hide();
}
$w("#projectCard").onClick( (event, $w) => {
let clickedItemData = $w("#dataset1").getCurrentItem();
wixLocation.to(clickedItemData["link-Projects-pageTitle"]);
});
});
where “projectCard” is a repeater element, and “itemEffectBox” is on the same repeater element. Neither of onMouseIn, onMouseOut, and onClick is firing (or at least doesn’t seem to do anything)