He was faster than Riddle, but Riddle’s spell repertoire far exceeded Harry’s, and Harry ended up having to dodge some spells since he wasn’t sure his shield would stop them. It put him at a disadvantage – or it would have, if Harry wasn’t so good at casting whilst moving. His constant momentum made it harder for Riddle to anticipate where he’d be, and thus harder for Riddle to hit.