diff --git a/components/lib/image/Image.js b/components/lib/image/Image.js index b92024c7c6..3ca58d3aea 100644 --- a/components/lib/image/Image.js +++ b/components/lib/image/Image.js @@ -118,8 +118,8 @@ export const Image = React.memo( const createElement = () => { const { downloadable, alt, crossOrigin, referrerPolicy, useMap, loading } = props; const imagePreviewStyle = { transform: 'rotate(' + rotateState + 'deg) scale(' + scaleState + ')' }; - const zoomDisabled = scaleState <= 0.5 || scaleState >= 1.5; - // const rotateClassName = 'p-image-preview-rotate-' + rotateScale; + const zoomOutDisabled = scaleState <= 0.5; + const zoomInDisabled = scaleState >= 1.5; const downloadIcon = IconUtils.getJSXIcon(props.downloadIcon || , undefined, { props }); const rotateRightIcon = IconUtils.getJSXIcon(props.rotateRightIcon || , undefined, { props }); const rotateLeftIcon = IconUtils.getJSXIcon(props.rotateLeftIcon || , undefined, { props }); @@ -128,23 +128,23 @@ export const Image = React.memo( const closeIcon = IconUtils.getJSXIcon(props.closeIcon || , undefined, { props }); return ( -
+
{downloadable && ( - )} - - - -