You do not need to offset anything. This is all that is needed:
If not working as expected, something else is here at play. Custom cursor shenanigans perhaps?
To elaborate, is this the result you’re after:
Screen aspect ratio? Do you, by any chance, change the window size / aspect ratio at any point? Although I’m getting consistent result when shifting things about, too.