Skip to content

Commit

Permalink
Make keyboard scrolling work on webkit
Browse files Browse the repository at this point in the history
Issue #72
  • Loading branch information
qu1ck committed Sep 9, 2023
1 parent a628cca commit 33a58a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/tables/common.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ export function TrguiTable<TData>(props: {
}} />
))}
</Box>
<div ref={parentRef} className="torrent-table-rows" onScroll={onTableScroll}>
<div ref={parentRef} className="torrent-table-rows" onScroll={onTableScroll} tabIndex={-1}>
<div className="torrent-table"
style={{ height: `${virtualizer.getTotalSize()}px`, width: `${width}px` }}>
{virtualizer.getVirtualItems()
Expand Down
4 changes: 4 additions & 0 deletions src/css/torrenttable.css
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@
overflow: auto;
}

.torrent-table-rows:focus {
outline: 0;
}

.torrent-table {
position: absolute;
left: 0;
Expand Down

0 comments on commit 33a58a3

Please sign in to comment.