How to fix the Magento 2.2.4 / 2.2.5 product image magnifier issue?

02

The bug was introduced at 2018-01-10 by the following commit:

How to fix

Replace the line:
https://github.com/magento/magento2/blob/2.2.4/lib/web/magnifier/magnifier.js#L591-L591

with the following one:
https://github.com/magento/magento2/blob/2.2.3/lib/web/magnifier/magnifier.js#L591-L591

Then re-deploy the static content.

See also: