diff --git a/src/components/viewtypes/ListViewTable.tsx b/src/components/viewtypes/ListViewTable.tsx index 3d185bc..66c9375 100644 --- a/src/components/viewtypes/ListViewTable.tsx +++ b/src/components/viewtypes/ListViewTable.tsx @@ -168,12 +168,16 @@ const ListViewTable = ({ // If mouse is still held down from the handleSelectMouseDown function, then // mousing over a row will set the range selection from the initial mousedown location // to the mouse-entered row + const debouncedMouseEnterFn = _.debounce((rowData: any) => { + dispatch(setRangeSelected(rowData)); + dispatch( + toggleRangeSelected(sortColumn && !nowPlaying ? sortedData : data) + ); + }, 100); + const handleSelectMouseEnter = (rowData: any) => { if (multiSelect.isSelectDragging) { - dispatch(setRangeSelected(rowData)); - dispatch( - toggleRangeSelected(sortColumn && !nowPlaying ? sortedData : data) - ); + debouncedMouseEnterFn(rowData); } };