Anchor destination thresold

The destination thresold parameter should be taken in consideration when we click on an anchor link.
Merge pull request #5274 from glafarge/patch-4

Anchor destination thresold