Scroll in one pallete should scroll in other pallete

I have two separate pallete , on scrolling in one pallete i want to scroll the same amount in the other pallete.

I want to do horizontal scrolling in the panel

The idea is to implement a “ViewportBoundsChanged” DiagramEvent listener on each Diagram to update the other Diagram. (Remember that the Palette class inherits from Diagram.)

This is demonstrated in the Gantt sample. Note how each listener updates the Diagram.position of the other diagram. (Actually there are three Diagrams that get synchronized.) Also note the presence of a global flag acting to prevent recursive updates.