Charging attacks- close or distant?

Werewolves, large bandits and several other enemies use a charging attack sometimes. The attack usually starts at a distance, but when they actually hit you and do damage they are in melee range. Is this considered damage from distance or close?