Fine grained scroll control

Tags: #<Tag:0x00007f0b10dcae48>

I’m using the scrollViewportTo method

https://handsontable.com/docs/6.2.2/Core.html#scrollViewportTo

And finding that it’s overshooting the row that it’s scrolling to.

eg. if I scroll to row 650, row 652 ends up at the top of the table. I can’t see any other methods to control pixel-by-pixel scroll position scroll position of the table. Is there a hook for this somewhere?

Thanks!

Can you add jsfiddle? I can’t reproduce the bug.

scrollViewportTo(650,0) scrolls to row 651 because they are 0 based.

Umm, sorry about that. Can reproduce now. Maybe I was getting confused by the 0-based index (probably! :slight_smile: ).

Thanks @wojciech.czerniak