improved waypoint positioning on screen edges