Each attack has a warm up and cool down and moving either side of your hero and tapping after every attack will make them skip the cool down move entirely enabling them to attack faster. This trick works with both the melee attack and the ranged attack.