Quick fix for HammerJS 1.1 breaking ngDialog

Made nicer.