free
web stats

Fill the form & Get Installation Support

We don't monkey around your business.

GET IN TOUCH WITH US NOW





Magento 2 magnifier hover not disappear when mouse leaves media box

When you check image zoom functionality in the product page, normally it should work with the entire section.

Well, let’s talk about what to do when the magnifier on an image works fine in some places, but it will get disappear from a corner before you leaves the cursor out.

For that we need to change in a magnifier library file like below,

For that we need to change in a magnifier library file like below,

You have to change in lib/web/magnifier/magnifier.js file:

Add below code after line:556

Another change is some code needs to be removed and add around line:575

Remove Code:

Add Code:

Also remove:

Now the last change of this file is:

Add below line after $box.on(‘mousemove’, onMousemove) code:

After all changes are applied, please run below commands and check.