Skip to content

Commit e10f3e3

Browse files
JS-330: Hide magnifier on video images
1 parent 32139a9 commit e10f3e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/web/magnifier/magnify.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ define([
2424
zoomOutLoaded = 'zoom-out-loaded',
2525
zoomInDisabled = 'fotorama__zoom-in--disabled',
2626
zoomOutDisabled = 'fotorama__zoom-out--disabled',
27+
videoContainerClass = 'fotorama-video-container',
2728
hideMagnifier,
2829
checkForVideo,
2930
behaveOnHover,
@@ -741,7 +742,7 @@ define([
741742
* Check for video container.
742743
*/
743744
checkForVideo = function ($stageFrame) {
744-
return $stageFrame.hasClass('fotorama-video-container');
745+
return $stageFrame.hasClass(videoContainerClass);
745746
};
746747

747748
/**

0 commit comments

Comments
 (0)