Fixing mouse move 'relative to the previous element' if a new page is loaded. Fixes issue 7637