Moved directions checking code to the setup function.
Moved directions checking code to the setup function.

RyanMullins/angular-hammer,cwperry/angular-hammer,blakgeek/angular-hammer,blakgeek/angular-hammer