score:3

Here is my take on combining d3-zoom with scrollbars: https://stackblitz.com/edit/d3-pan-and-zoom

Apart from handling d3's zoom to update scrollbar positions, you also need to handle scrolling with scrollbars to update d3's internal zoom representation by calling translateTo().


Related Query

More Query from same tag