# Page Position Test

# OpenLayers Page Position Test

Test if borders and scroll position cause unwanted offsets on the mouse positions reported by map events.

- navigate
- draw line

This map's div has a border and absolute positioning, wrapped by a container which also has a border. The page is also scrollable. Neither the borders nor scrolling the page should result in unwanted offsets on pixel positions reported by map events.

With the line drawing control active, click on the map to add a point. The point should be drawn at the exact mouse location.

With the navigation control active, shift-drag a zoom rectangle. The rectangle's corner should align exactly with the mouse cursor.

Scroll the page and repeat the above tests.