I have built an Orientation gizmo to use in a 3d visualization tool. With it I use an ArcRotateCamera with disabled zoom and panning. However, if I press the panning button the camera starts to rotate. While looking on the forums I have found that
camera.inputs.attached.pointers.buttons = [0]
works just as I intended on Playground, but not in my TS project, producing the following error:
TypeScript error in OrientationGizmo.tsx(28,41):
Property ‘buttons’ does not exist on type ‘ICameraInput’. TS233926 | camera.attachControl(this.canvas, true,false);
27 |
28 | camera.inputs.attached.pointers.buttons = [0]
***|---------------------------------------------^
How would I proceed to fix this?
Below you can find my playground solution.