Browse Source

add dnd for miniview

master
jeffvli 3 years ago
parent
commit
17169f06fc
  1. 5
      src/components/player/NowPlayingMiniView.tsx

5
src/components/player/NowPlayingMiniView.tsx

@ -117,7 +117,7 @@ const NowPlayingMiniView = () => {
dispatch(moveDown(selectedIndexes)); dispatch(moveDown(selectedIndexes));
}; };
const handleMouseUp = () => { const handleDragEnd = () => {
if (multiSelect.isDragging) { if (multiSelect.isDragging) {
dispatch( dispatch(
moveToIndex({ moveToIndex({
@ -210,7 +210,7 @@ const NowPlayingMiniView = () => {
handleRowDoubleClick={handleRowDoubleClick} handleRowDoubleClick={handleRowDoubleClick}
handleUpClick={handleUpClick} handleUpClick={handleUpClick}
handleDownClick={handleDownClick} handleDownClick={handleDownClick}
handleMouseUp={handleMouseUp} handleDragEnd={handleDragEnd}
virtualized virtualized
rowHeight={Number(settings.getSync('miniListRowHeight'))} rowHeight={Number(settings.getSync('miniListRowHeight'))}
fontSize={Number(settings.getSync('miniListFontSize'))} fontSize={Number(settings.getSync('miniListFontSize'))}
@ -222,6 +222,7 @@ const NowPlayingMiniView = () => {
listType="mini" listType="mini"
nowPlaying nowPlaying
miniView miniView
dnd
/> />
</GenericPage> </GenericPage>
</MiniViewContainer> </MiniViewContainer>

Loading…
Cancel
Save