Position cursors as layers relative to the viewport