Improve zooming on state diagram display