'GoJS: Prevent movement of diagram on dragging a node to boundary

On dragging a node towards view port boundary, diagram starts moving. Is there a way to prevent this behavior.



Solution 1:[1]

That automatic scrolling that you are seeing is called "autoscrolling". You can disable it by setting https://gojs.net/latest/api/symbols/Diagram.html#autoScrollRegion to zero.

$(go.Diagram, . . .,
  { . . .,
    autoScrollRegion: 0
  })

Solution 2:[2]

  $(go.Diagram, . . .,
  { . . .,
    "panningTool.isEnabled": false,
  })

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Walter Northwoods
Solution 2 onair