Basically cast ends way before telegraph disappears and the game calculates the damage when cast ends, so even though you might have run out of telegraph 'in time', if you did it after cast ended you'll get full damage. Game having enormous server tick doesn't help either, though it also allows casters to start moving with 0.3s of cast time left and still successfully cast the spell, which is neat for player, but is terrible design in general.