diff --git a/packages/gallery/src/components/item/media/mediaItem.tsx b/packages/gallery/src/components/item/media/mediaItem.tsx index 2ffd6bd57..8ee3fc5d0 100644 --- a/packages/gallery/src/components/item/media/mediaItem.tsx +++ b/packages/gallery/src/components/item/media/mediaItem.tsx @@ -45,7 +45,7 @@ export type MediaImplementationProps = T & const getPlayButtonComponentByItemType = (type: string) => { if (type === 'video') { - return ; + return ; } else if (type === '3d') { return ; } else { @@ -71,13 +71,15 @@ export default function MediaItem>(props: MediaPro if (utils.isSSR()) { return false; } - if ( playTrigger === GALLERY_CONSTS[optionsMap.behaviourParams.item.video.playTrigger].HOVER || playTrigger === GALLERY_CONSTS[optionsMap.behaviourParams.item.video.playTrigger].AUTO ) { return true; - } else if (clickAction === GALLERY_CONSTS[optionsMap.behaviourParams.item.clickAction].NOTHING) { + } else if ( + clickAction === GALLERY_CONSTS[optionsMap.behaviourParams.item.clickAction].NOTHING || + clickAction === GALLERY_CONSTS[optionsMap.behaviourParams.item.clickAction].MAGNIFY + ) { return true; } else if (clickAction === GALLERY_CONSTS[optionsMap.behaviourParams.item.clickAction].LINK && !hasLink) { return true;