triplex icon indicating copy to clipboard operation
triplex copied to clipboard

Jump to element camera behavior is different to initial load / camera axis helper behavior

Open itsdouges opened this issue 10 months ago • 0 comments

(1) When a scene is loaded this function runs: https://github.com/trytriplex/triplex/blob/7ea2d34b96dd15b01018a238c1cefa8163048437/packages/renderer/src/features/camera-helpers/camera-fit-scene.tsx#L42

(2) When interacting with the camera axis helper this function runs: https://github.com/trytriplex/triplex/blob/7ea2d34b96dd15b01018a238c1cefa8163048437/packages/renderer/src/features/camera-helpers/camera-axis-helper.tsx#L43

(3) When pressing "f" or using the "jump to element" action this function runs: https://github.com/trytriplex/triplex/blob/7ea2d34b96dd15b01018a238c1cefa8163048437/packages/renderer/src/features/selection-three-fiber/index.tsx#L199

(1) + (2) are essentially the same. (3) is unique. This issue should consolidate all the behaviour and make sure all three behave the same.

When picking this issue up let me know and I can make a feature gate for you to use so we can roll this out safely.

itsdouges avatar Feb 22 '25 02:02 itsdouges