magento2
magento2 copied to clipboard
Close button not working in a mobile device on product image zoom popup.
Preconditions (*)
- Magento 2.4.3-p1
Steps to reproduce (*)
- Open product page on a mobile device
- Scroll product page on mobile
- Click on a product image then zoom popup open
- Then try to close the popup by clicking the close button
- Popup can't be close.
Description (*)
I found issue https://github.com/artpolikarpov/fotorama/issues/529 on fotorama git repo. so It is related to each other. all events get passive listener to by using this code.
el.addEventListener ? el.addEventListener(e, fn, {passive: true}) : el.attachEvent('on' + e, fn);
File path: lib/web/fotorama/fotorama.js Line No: 1143
I found this pull request https://github.com/artpolikarpov/fotorama/pull/574
Expected result (*)
- Image zoom popup should be closed by clicking on the close button

Actual result (*)
As per analysis, there are 3 issues happening when you zoom-in and zoom-out any product image:
- If you click on the product and close it again, mini cart will open itself like below:
- If you again click on the product and close it again, search bar will open itself like below:
- If you go a little bit down from the product image and then click on product to zoom-in and then try to close it, the product will be not be able to close and user needs to be refresh the page.

Example
https://user-images.githubusercontent.com/59193951/147908020-89d163bb-646b-4a87-bbe2-93499e8a7460.mp4
Related issue: https://github.com/magento/magento2/issues/33855
Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
- [ ] Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- [x] Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- [ ] Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- [ ] Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- [ ] Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
Hi @paresh6002. Thank you for your report. To speed up processing of this issue, make sure that you provided the following information:
- Summary of the issue
- Information on your environment
- Steps to reproduce
- Expected and actual results
Make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:
@magento give me 2.4-develop instance - upcoming 2.4.x release
For more details, review the Magento Contributor Assistant documentation.
Add a comment to assign the issue: @magento I am working on this
To learn more about issue processing workflow, refer to the Code Contributions.
- Join Magento Community Engineering Slack and ask your questions in #github channel.
:warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.
:clock10: You can find the schedule on the Magento Community Calendar page.
:telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.
:movie_camera: You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel
:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel
Hi @engcom-Echo. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
-
- Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
Details
If the issue has a valid description, the labelIssue: Format is validwill be added to the issue automatically. Please, edit issue description if needed, until labelIssue: Format is validappears.
- Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
-
- Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add
Issue: Clear Descriptionlabel to the issue by yourself.
- Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add
-
- Add
Component: XXXXXlabel(s) to the ticket, indicating the components it may be related to.
- Add
-
- Verify that the issue is reproducible on
2.4-developbranchDetails
- Add the comment@magento give me 2.4-develop instanceto deploy test instance on Magento infrastructure.
- If the issue is reproducible on2.4-developbranch, please, add the labelReproduced on 2.4.x.
- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
- Verify that the issue is reproducible on
- Join Magento Community Engineering Slack and ask your questions in #github channel.
Hi @paresh6002,
Thank you for reporting the issue.
However, I am not able to reproduce the same. I have tried on multiple fresh 2.4-develop instances but the zoomed up product image on detail page is getting closed properly. The close button action is not getting affected by the console error and I think that console error is already being addressed by our team somewhere. Some screenshots attached of my trials.
So, based on it please update below queries:
- Can you please check if this issue is reproducible on Magento 2.4-develop instance ?
- Let me know if you did anything differently then specified in 'Steps to reproduce', maybe this behaviour is happening after some action ?
Thanks
Hi @engcom-Echo I have added a video for this issue. so you can try to reproduce this issue by scrolling as shown in the video. the issue is in the mobile devices.
Thank You
Hi @paresh6002,
Thank you for providing the video.
Since you are checking on your website, it could be happening due to some other error which you may have been getting after deployment. You can check logs and see if you find anything.
For confirmation, you can also check on fresh Magento installation or Magento 2.4-develop instance. I have checked again, even on Magento 2.4.3-p1 but this functionality seems to be working fine. Please check attached video for your ref.
https://user-images.githubusercontent.com/51681435/147805223-ef7ce8a9-ca9c-4ff5-a336-16db3492a7ad.mov
Can you please check on fresh installation and let me know if you still face this issue and if yes, please update description with some more info ?
Thanks
Hi @engcom-Echo I have reproduced the issue on fresh Magento installation for Magento 2.4-develop instance. I have attached a new video here. so you can follow the same step as the attached video. And I can see the issue in your video. the search bar/mini-cart will get open when you close the popup. That should not open while closing the image popup.
https://user-images.githubusercontent.com/59193951/147908020-89d163bb-646b-4a87-bbe2-93499e8a7460.mp4
Hi @paresh6002,
Thank you for providing the video.
I understood when the issue is happening. Verified the issue and is reproducible on Magento 2.4-develop.
As per analysis, there are 3 issues happening when you zoom-in and zoom-out any product image:
- If you click on the product and close it again, mini cart will open itself like below:
- If you again click on the product and close it again, search bar will open itself like below:
- If you go a little bit down from the product image and then click on product to zoom-in and then try to close it, the product will be not be able to close and user needs to be refresh the page.
All issues are reproduced exactly shown in the video by Reporter. Therefore confirming the issue.
Thanks
:white_check_mark: Jira issue https://jira.corp.magento.com/browse/AC-2075 is successfully created for this GitHub issue.
:white_check_mark: Confirmed by @engcom-Echo. Thank you for verifying the issue.
Issue Available: @engcom-Echo, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.
@magento I am working on this
Thanks! I had the same issue on Magento 2.4.3-p2, your fix saved me fixing this issue for the client! I approve :) This works.
@Melnychuk-Alexandr was this fixed?
Hi @paresh6002,
Thanks for your reporting and collaboration.
We have verified the issue in Latest 2.4-develop instance and the issue is still reproducible.kindly refer the screenshots.
Hence Confirming the issue.
Thanks.
:x: Cannot export the issue. This GitHub issue is already linked to Jira issue(s): https://jira.corp.adobe.com/browse/AC-2075