Tweaked pan and zoom ui behavior.