Browse Source

fix double click

master
jeffvli 3 years ago
parent
commit
88bc7762e2
  1. 2
      src/components/player/NowPlayingView.tsx
  2. 2
      src/components/viewtypes/ListViewType.tsx

2
src/components/player/NowPlayingView.tsx

@ -91,7 +91,7 @@ const NowPlayingView = () => {
}
};
const handleRowDoubleClick = (_e: any, rowData: any) => {
const handleRowDoubleClick = (rowData: any) => {
window.clearTimeout(timeout);
timeout = null;
dispatch(clearSelected());

2
src/components/viewtypes/ListViewType.tsx

@ -198,7 +198,7 @@ const ListViewType = ({
})
}
onDoubleClick={(e: any) =>
handleRowDoubleClick(e, {
handleRowDoubleClick({
...rowData,
rowIndex,
})

Loading…
Cancel
Save