Flip touch coordinates only when required
Fix OSX crash and flipped touch support