I think you might be misinterpreting global coordinate system vs viewport coordinates. See here my reply to another post, where I explained the difference, the same could apply to your scenario:
I think you might be misinterpreting global coordinate system vs viewport coordinates. See here my reply to another post, where I explained the difference, the same could apply to your scenario: