Refactored placement of event.preventDefault for Android gesture implementation.