Refactor dragzoom