Fixes a bug where the marker didn't move right if the page was scrolled.