Browse Source

decrease list click delay from 300 -> 100

Since we removed the floating selection bar, it makes sense to no longer have a long delay on click. Decreasing the single-click interval increases the responsiveness of the list, while still allowing double clicks to function as normal.
master
jeffvli 3 years ago
parent
commit
174d8ce029
  1. 2
      src/components/library/AlbumList.tsx
  2. 2
      src/components/library/AlbumView.tsx
  3. 2
      src/components/library/ArtistView.tsx
  4. 2
      src/components/player/NowPlayingMiniView.tsx
  5. 2
      src/components/player/NowPlayingView.tsx
  6. 2
      src/components/playlist/PlaylistView.tsx
  7. 2
      src/components/starred/StarredView.tsx

2
src/components/library/AlbumList.tsx

@ -63,7 +63,7 @@ const AlbumList = () => {
} else { } else {
dispatch(setSelected(rowData)); dispatch(setSelected(rowData));
} }
}, 300); }, 100);
} }
}; };

2
src/components/library/AlbumView.tsx

@ -72,7 +72,7 @@ const AlbumView = ({ ...rest }: any) => {
} else { } else {
dispatch(setSelected(rowData)); dispatch(setSelected(rowData));
} }
}, 300); }, 100);
} }
}; };

2
src/components/library/ArtistView.tsx

@ -75,7 +75,7 @@ const ArtistView = ({ ...rest }: any) => {
} else { } else {
dispatch(setSelected(rowData)); dispatch(setSelected(rowData));
} }
}, 300); }, 100);
} }
}; };

2
src/components/player/NowPlayingMiniView.tsx

@ -80,7 +80,7 @@ const NowPlayingMiniView = () => {
} else { } else {
dispatch(setSelected(rowData)); dispatch(setSelected(rowData));
} }
}, 300); }, 100);
} }
}; };

2
src/components/player/NowPlayingView.tsx

@ -83,7 +83,7 @@ const NowPlayingView = () => {
} else { } else {
dispatch(setSelected(rowData)); dispatch(setSelected(rowData));
} }
}, 300); }, 100);
} }
}; };

2
src/components/playlist/PlaylistView.tsx

@ -104,7 +104,7 @@ const PlaylistView = ({ ...rest }) => {
} else { } else {
dispatch(setSelected(rowData)); dispatch(setSelected(rowData));
} }
}, 300); }, 100);
} }
}; };

2
src/components/starred/StarredView.tsx

@ -75,7 +75,7 @@ const StarredView = () => {
} else { } else {
dispatch(setSelected(rowData)); dispatch(setSelected(rowData));
} }
}, 300); }, 100);
} }
}; };

Loading…
Cancel
Save