preserveViewport and dblclick bug fixes