Lines are jiggling when moving the camera with the mouse

I’m trying to create houses with windows but when I move the mouse all the lines are jiggling extremely.
When I only use wasd the lines stay as they should be.
Is there a way to fix this so everything stays in place while moving the mouse?

Here is an example of the code:

maybe this helps to understand what i mean:
wasd doesn’t change the lines but mouse movement does

it seems like it’s recalculating every mouse tick.
is there a way to fix this?

Do you mind demonstrating the shaking effect without A-Frame?

It seems there is some sort of conflict when the camera is transformed. However, I do not know A-Frame well enough to identify the root cause of this. It will be easier to provide three.js related feedback with a pure three.js demo.

The problem was that a-frame probably uses float or something that isn’t as accurate as doubles.
If the coordinates were 1901.9898964735107, 4160.2689216 i reduced every latitude and longitude with the smallest number before the decimal point of all lats and longs. So i need less numbers to be accurate now.

So 1901.9898964735107 → 0.98989… and 4160.2689216 → 0.2689216