Change Pan direction in speckle viewer

Hey Alex, another question. i want to keep both views in sync
So when i pan around on image i get a yaw pitch value,then i use yawpitch to cartesian converter, it returns target value
i am passing this target value and original(calculated at initialisation of the viewer) position of the camera in
fromPositionAndTarget

there seems to be a shakiness when transitioning. attached video for reference.

i am thinking its because i am setting both the position and target everytime. can you suggest something for this.