viewer-components-react icon indicating copy to clipboard operation
viewer-components-react copied to clipboard

[measure-tools] Tools do not get the latest 'snap' location

Open a-gagnon opened this issue 1 year ago • 1 comments

When we create a new measurement, the coordinates of the point are set inside the onMouseMotion function. If we move the mouse too fast, it creates a disconnect between the snap location and the measurement location. Most likely, this is because we get called onMouseMotion but the snap request hasn't returned yet. We would need to perform one final update when that request completes. There might be an event somewhere we can listen to in order to fix this.

image

Please refer to the video below. https://github.com/iTwin/viewer-components-react/assets/3418768/dfff6ff7-1636-447a-ae90-9b1de99346eb

a-gagnon avatar Jul 08 '24 13:07 a-gagnon

Bug should be fixed starting @itwin/core-frontend version 4.8.0.

Please close this issue if tool is behaving as expected.

GytisCepk avatar Aug 21 '24 12:08 GytisCepk