On mobile devices, if you zoom the screen, the position is always different.

$('g[sid="25"]').position().left 

How to make it so that it does not change its values?

    1 answer 1

    Perhaps it is worth using .offset()

    .offset() - coordinates relative to the beginning of the page.

    .position() is relative to the nearest parent with the given positioning.

    It is important to note that using the .offset () method you will only get the position of the first element from all selected. If you need the coordinate values ​​of all elements, then you should use constructions like .map () or .each ().

    A source