diff --git a/lib/web/magnifier/magnifier.js b/lib/web/magnifier/magnifier.js index f6d97f40d51a5..165403a158b9c 100644 --- a/lib/web/magnifier/magnifier.js +++ b/lib/web/magnifier/magnifier.js @@ -599,7 +599,7 @@ } $(window).on('scroll', onScroll); - $(window).resize(function () { + $(window).on('resize', function () { _init($box, customUserOptions); });