Disable dragging if an item is loaded for playback (resolves #55)
This commit is contained in:
parent
bcef6fe319
commit
964977bfdf
1 changed files with 3 additions and 1 deletions
|
@ -28,6 +28,8 @@ export const Item = memo(function Item({
|
|||
(state: RootState) => state.mixer.players[column]
|
||||
);
|
||||
|
||||
const isLoaded = playerState.loadedItem !== null && itemId(playerState.loadedItem) === id;
|
||||
|
||||
const showDebug = useSelector(
|
||||
(state: RootState) => state.settings.showDebugInfo
|
||||
);
|
||||
|
@ -39,7 +41,7 @@ export const Item = memo(function Item({
|
|||
}
|
||||
|
||||
return (
|
||||
<Draggable draggableId={id} index={index} isDragDisabled={isGhost}>
|
||||
<Draggable draggableId={id} index={index} isDragDisabled={isGhost || isLoaded}>
|
||||
{(provided, snapshot) => (
|
||||
<div
|
||||
ref={provided.innerRef}
|
||||
|
|
Loading…
Reference in a new issue