Focus on main window after scrolling to any anchors
Focus on main window after scrolling to any anchors

Also add delay so scroll position updates.

Fixes #1082

lsegal/yard,thomthom/yard,lsegal/yard,thomthom/yard,lsegal/yard,thomthom/yard