don't trigger copy image to clipboard when info bar is open
This commit is contained in:
parent
bf1fa3ce23
commit
28f85bc8a4
|
@ -115,6 +115,9 @@ function PhotoViewer(props: Iprops) {
|
|||
useEffect(() => {
|
||||
if (!photoSwipe) return;
|
||||
function handleCopyEvent() {
|
||||
if (!isOpen || showInfo) {
|
||||
return;
|
||||
}
|
||||
copyToClipboardHelper(photoSwipe.currItem as EnteFile);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue