This is the way I coded:
But if the highlighted row is not the "top row" in the viewing area that is set by the div, I do not want any scrolling to happen. I only want the next row that is right above the current row to be highlighted.
I want the scroll to happen (i.e., the next row above to be "scrollIntoView" ) when the highlighted row is the "top row".
This is why I want to
test if the current row is at the top in the viewing area.
Please help if you know how to do it. Thank you.