API: fixed coordinates for situations when the page has been scrolled.