From 174d8ce0292ccb3a80bc019c10bdae89c75635cd Mon Sep 17 00:00:00 2001 From: jeffvli Date: Sat, 18 Sep 2021 03:18:12 -0700 Subject: [PATCH] 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. --- src/components/library/AlbumList.tsx | 2 +- src/components/library/AlbumView.tsx | 2 +- src/components/library/ArtistView.tsx | 2 +- src/components/player/NowPlayingMiniView.tsx | 2 +- src/components/player/NowPlayingView.tsx | 2 +- src/components/playlist/PlaylistView.tsx | 2 +- src/components/starred/StarredView.tsx | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/library/AlbumList.tsx b/src/components/library/AlbumList.tsx index 0d96299..f8a7de9 100644 --- a/src/components/library/AlbumList.tsx +++ b/src/components/library/AlbumList.tsx @@ -63,7 +63,7 @@ const AlbumList = () => { } else { dispatch(setSelected(rowData)); } - }, 300); + }, 100); } }; diff --git a/src/components/library/AlbumView.tsx b/src/components/library/AlbumView.tsx index 70dcc97..d8a3e55 100644 --- a/src/components/library/AlbumView.tsx +++ b/src/components/library/AlbumView.tsx @@ -72,7 +72,7 @@ const AlbumView = ({ ...rest }: any) => { } else { dispatch(setSelected(rowData)); } - }, 300); + }, 100); } }; diff --git a/src/components/library/ArtistView.tsx b/src/components/library/ArtistView.tsx index b00a2b6..4efecb4 100644 --- a/src/components/library/ArtistView.tsx +++ b/src/components/library/ArtistView.tsx @@ -75,7 +75,7 @@ const ArtistView = ({ ...rest }: any) => { } else { dispatch(setSelected(rowData)); } - }, 300); + }, 100); } }; diff --git a/src/components/player/NowPlayingMiniView.tsx b/src/components/player/NowPlayingMiniView.tsx index aa06f94..1f0ed6a 100644 --- a/src/components/player/NowPlayingMiniView.tsx +++ b/src/components/player/NowPlayingMiniView.tsx @@ -80,7 +80,7 @@ const NowPlayingMiniView = () => { } else { dispatch(setSelected(rowData)); } - }, 300); + }, 100); } }; diff --git a/src/components/player/NowPlayingView.tsx b/src/components/player/NowPlayingView.tsx index d1a7cac..92d45c6 100644 --- a/src/components/player/NowPlayingView.tsx +++ b/src/components/player/NowPlayingView.tsx @@ -83,7 +83,7 @@ const NowPlayingView = () => { } else { dispatch(setSelected(rowData)); } - }, 300); + }, 100); } }; diff --git a/src/components/playlist/PlaylistView.tsx b/src/components/playlist/PlaylistView.tsx index 0853cfe..2085759 100644 --- a/src/components/playlist/PlaylistView.tsx +++ b/src/components/playlist/PlaylistView.tsx @@ -104,7 +104,7 @@ const PlaylistView = ({ ...rest }) => { } else { dispatch(setSelected(rowData)); } - }, 300); + }, 100); } }; diff --git a/src/components/starred/StarredView.tsx b/src/components/starred/StarredView.tsx index 8cecc76..be36b26 100644 --- a/src/components/starred/StarredView.tsx +++ b/src/components/starred/StarredView.tsx @@ -75,7 +75,7 @@ const StarredView = () => { } else { dispatch(setSelected(rowData)); } - }, 300); + }, 100); } };