Dragons don't always attack, I don't know what the event key to attack is, but sometimes they just are out for a fly... I believe arrows have a max range so it may look like you're hitting but actually the arrow isn't making it to the target. You'll know when you hit because a damage bar will come up.