Drag canvas but the canvas not moving

Thanks, Walter.
It’s caused by a line of code:
myDiagram.toolManager.panningTool.isEnabled = false;
It’s written by someone else and I didn’t notice before.
After I remove this code, the diagram works fine.