triplex icon indicating copy to clipboard operation
triplex copied to clipboard

editor view camera controls conflict with @react-three/handle

Open mommysgoodpuppy opened this issue 9 months ago • 2 comments

reproduction:

create a component with a handle

import { TransformHandles } from '@react-three/handles'
import { noEvents, PointerEvents } from '@react-three/xr'

export function Model({}) {
  return (
    <Canvas events={noEvents}>
      <PointerEvents />
      <TransformHandles>
        <mesh>
          <boxGeometry />
        </mesh>
      </TransformHandles>
    </Canvas >
  )
}

open it in triplex editor camera view and try to move the handles

mommysgoodpuppy avatar Mar 21 '25 12:03 mommysgoodpuppy

Fair. What do you think the behaviour should be?

itsdouges avatar Mar 21 '25 22:03 itsdouges

maybe have a way to switch handles/OrbitHandles it exclusively interacts with the handles

mommysgoodpuppy avatar Mar 21 '25 22:03 mommysgoodpuppy

Since the controlled props fix has gone out you shouldn't need to render your own handles anymore. If anyone is having an issue with handles please make a new issue with your use case and steps to reproduce.

itsdouges avatar Jul 17 '25 01:07 itsdouges