Punching while swinging will initiate a flying punch towards the nearest target. The web attack while swinging will automatically fire towards targets. While locked onto a target your web attack will always hit if the arrows are green.