-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Magnifier doesn't work with mode set to inner #4977
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @theycallmepepper Thanks for pointing to issue. |
I've enabled magnifier zoom in
|
I also notified this issue. I found a quick fixe for it: just set left to 0 and top to 0 and use default mode. |
Any updates on this issue? |
I've patched/replaced a couple of files in this module. The important bits are the css and the js which you could just throw in your theme (here). It also makes the magnifier work on touch screen laptops which it rather naively disables normally. @LSERRE IIRC you also need a tweak to make sure a click on the now magnified image gives you a "fullscreen" view (assuming you have that enabled). That's in the module above as well. |
Thanks @lingwooc |
@theycallmepepper, thank you for your report. |
Master branch of https://github.com/lingwooc/overlayMagnify-magento2 is updated to work with 2.2.4 which broke it. Bit more detail. The mouse out detection only works if you move slowly so magnifier.js needs:
This rule fixes the overlay, the new rule is pointer-events.
I did have a look through to see what had changed and I couldn't see much to cause this. These two changes fix it though. I'll do a 1.1.0 release on that module to packagist at some point. I'm aware I could do a PR on this but I don't have the time to test it. |
#WroCD |
@kacperchara thank you for joining. Please accept team invitation here and self-assign the issue. |
Hi @theycallmepepper. Thank you for your report. The fix will be available with the upcoming 2.2.5 release. |
The fix seems to be available in https://github.com/magento/magento2/blob/2.2.5/app/design/frontend/Magento/luma/etc/view.xml Maybe in 2.2.6? |
Hi @theycallmepepper. Thank you for your report. The fix will be available with the upcoming 2.3.0 release. |
For anyone interested, this one seems to be in place for the 2.2.6 release. |
[EngCom][Combined] Inventory Stabilization + GraphQl + SSL MySql + DBC
This appears to be the original library that was ported over magnifier.js which offers the option of setting mode to 'inside' for an in-frame zoom.
In the etc/view.xml for the theme if you set the following the zoom does not work as expected:
<var name="magnifier"> <var name="mode">inside</var> <var name="eventType">hover</var> <var name="enabled">true</var> </var>
Instead of an in-frame zoom the lens does not appear. If you change mode back to outside it functions as expected.
Also,
https://github.com/magento/magento2/blob/develop/lib/web/magnifier/magnifier.js#L214 --unreachable if statement.
The text was updated successfully, but these errors were encountered: