don't trigger copy image to clipboard when info bar is open

This commit is contained in:
Abhinav 2023-04-11 13:46:58 +05:30
parent bf1fa3ce23
commit 28f85bc8a4

View file

@ -115,6 +115,9 @@ function PhotoViewer(props: Iprops) {
useEffect(() => {
if (!photoSwipe) return;
function handleCopyEvent() {
if (!isOpen || showInfo) {
return;
}
copyToClipboardHelper(photoSwipe.currItem as EnteFile);
}