How do we link the zoom slider with the trackpad zoom action (pinch to zoom on mac)
The ZoomSlider observes the Diagram.scale of the Diagram, using a “ViewportBoundsChanged” DiagramEvent listener.
So as long as focus is in the Diagram and the user can pinch zoom the scale of the diagram, the ZoomSlider will automatically keep up to date.
Or are you asking how to initialize the ZoomSlider?
It was the latter, that worked. Thank you!