How to update 2D Slicing Data and 3D graphics syschronously in FourPaneViewer (VTK9.2 Examples)

Lately I encountered some difficulties. I need to implement a function in FourPaneViewer(VTK9.2 Example).When I roll the mouse wheel,2D Slicing Data and 3D graphics will update at the same time.What should i do to accomplish this feature?