Hi, Looking for tips to make this better

Im working on a project in which the user can drag the 2 white markers along the light gray field or drive the marker locations by having them moved to a specific location (simulated by pressing the blue buttons. the distance between the white markers will be measured by the blue dimension line.

Currently i’m keeping the blue dimension line scaled and centered using variables and formulas, but when the blue dimension line scales an adjusts position it does so a few milliseconds behind the bar movement resulting in a laggy jerky appearance.

Im looking for a way to do this in a more seamless connected way that works with both the drag and move responses. Any suggestions would be appreciated

Dimension test.pie