How to pan diagram without scrollbars

Is there any way to pan the diagram without scroll bars ??
When I set,

allowHorizontalScroll: false,
allowVerticalScroll:false,

panning doesn’t work. Setting them true , panning of diagram works.

Try setting Diagram.hasHorizontalScrollbar and hasVerticalScrollbar to false.