Adding some iPad event publishing optimizations. Fixed #1623.