Create a getOffset to factorise event position finding.