Replaced old resize code, changed target of tap to surface