Hi !
I'm currently trying to make navigation using zoom/pan with mouse and I would like to make a zoom like in most software like photoshop or figma which zoom onto the mouse.
I tried with the Scroll to X putting a lerp from the centre of the screen to the mouse and it kinda works.
My problem is that when Layout Scaling for the zoom the Mouse actually stays in place relative to the zoom/viewport and so the cursor is not on the object that I was zooming anymore but to his right or left and so it offset my zoom.
I think my problem is how does the mouse stay on the object relative to the layout scaling when the mouse doesnt change place but its the layout that changes
For information a screen of the events and the capx :
we.tl/t-rYDAqKFJSZ