3

Following the implementation of the latest upgrade onto our site, we've observed that in mobile viewpoints, the product image gallery doesn't allow for the user to scroll between images/videoes via grabbing, it only works using the dots at the bottom. Has anyone been able to find a fix for this?

I also noticed this has happened to the Magento 2 Store galleries as well so its clearly something that the latest upgrade has caused as our testing site is still on 2.4.5 and the gallery still works in mobile view

1 Answer 1

0

We recently upgraded from Magento 2.4.4 to 2.4.6 and have the same issue.

It has been reported & confirmed at Magento GitHub: https://github.com/magento/magento2/issues/37232

The fix that worked for me is editing lib/web/fotorama/fotorama.js line 1143

- el.addEventListener ? el.addEventListener(e, fn, !!bool) : el.attachEvent('on' + e, fn);
+ const options = {
+  get passive() {
+   return e === 'wheel';
+  }
+ }
+ el.addEventListener ? el.addEventListener(e, fn, options) : el.attachEvent('on' + e, fn);

Solution on GitHub: https://github.com/magento/magento2/issues/37232#issuecomment-1517467878

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.