Getting Mouse position Not Equal To Set Mouse Position

I am setting the X mouse position to 100 but get different number when retrieving mouse position

depending on what function i get a different number

  • from Viewport = 97.122314
  • from Platform = 103.0

How do I get the same result? am I setting the mouse position wrong or getting the mouse position wrong or is it a bug?

Ignore the extra functions

i havent checked but it probably depends on your viewport scale, there is a node to get viewport scale as well