Update code for zooming out on double click