Refactor mouse coordinate offset.