Solution in the link one works ,when scroll bar is enabled and its moves based on the scroll .
If I zoom out the widget scroll bar is automatically goes off and panning is not working.
looking for a solution that even though scroll bar is off , I am able to pan the complete scene.