Fix issue with drag drop

pull/304/head
Mikael Finstad 2020-04-10 13:54:47 +08:00
rodzic 6a8d74f881
commit 1980bd8728
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -1605,7 +1605,7 @@ const App = memo(() => {
return () => window.removeEventListener('keydown', keyScrollPreventer); return () => window.removeEventListener('keydown', keyScrollPreventer);
}, []); }, []);
const sideBarWidth = showSideBar ? 200 : 0; const sideBarWidth = showSideBar && isFileOpened ? 200 : 0;
const bottomBarHeight = 96 + ((hasAudio && waveformEnabled) || (hasVideo && thumbnailsEnabled) ? timelineHeight : 0); const bottomBarHeight = 96 + ((hasAudio && waveformEnabled) || (hasVideo && thumbnailsEnabled) ? timelineHeight : 0);
@ -1717,7 +1717,7 @@ const App = memo(() => {
)} )}
</AnimatePresence> </AnimatePresence>
<div className="no-user-select" style={{ position: 'absolute', top: topBarHeight, left: 0, right: sideBarWidth, bottom: bottomBarHeight, pointerEvents: 'none' }}> <div className="no-user-select" style={{ position: 'absolute', top: topBarHeight, left: 0, right: sideBarWidth, bottom: bottomBarHeight, visibility: !isFileOpened ? 'hidden' : undefined }}>
{/* eslint-disable-next-line jsx-a11y/media-has-caption */} {/* eslint-disable-next-line jsx-a11y/media-has-caption */}
<video <video
muted={muted} muted={muted}