@Dor wrote:
Hi,
How can I prevent the whole diagram from being moved when scrolling?
It's happens when there is no scroll and trying to scroll, happens also in almost all of the samples.
I've tried to disable the panning tool by calling "myDiagram.toolManager.panningTool.isEnabled = false" when initializing the diagram but that does not seem to be working.myDiagram = $(go.Diagram, "myDiagramDiv", { initialContentAlignment: go.Spot.Top, allowDrop: true, "animationManager.isEnabled": false, "undoManager.isEnabled": false, isReadOnly: true, allowSelect: false, "BackgroundSingleClicked" : handleBackgroundClick, "InitialLayoutCompleted": onInitialComplete }); myDiagram.toolManager.panningTool.isEnabled = false;Thanks,
Dor.
Posts: 7
Participants: 2