I have a standard HTML table with a thead and tbody, there could be any amount of rows in the tbody as it's dependent on the array size.
The table has a max-height and so is therefore scrollable. When the table is scrolled i want to be able to calculate the new top and bottom row being displayed.
Also I can't use jquery for this, I just want to use javascript.
I tried implementing the accepted answer for this question but it seemed to not be accurate and miscalculate anywhere from like 2-7 rows at times... Determine top row in html table