add double click to zoom and translate function