Synchronize horizontal scrolling of two grids?

I have two wide grids with the same columns, one below the other, and when the user scrolls one of them, I’d like to automatically scroll the other.
Previously, I’ve gotten help to implement this in Vaadin8 using GridScrollExtension, but now I need to do the same in Vaadin24. Any suggestions?