The blur doesn't take distance into account at all, it simply blurs more at the top and bottom of the viewport. I don't blame the author though, depth-of-field blur is expensive to simulate accurately - look at any video game with DOF blur and before long you'll notice artefacts around the edges of foreground objects.