Hello. I have created a simple scene where you click on a model and alert appears. Everything works fine on windows dekstop and android mobile, but on iphone safari browser onClick/touch events don’t work, I can’t trigger them. Where is the problem?
<Canvas
colorManagement
shadowMap
camera={{ position: [160, 50, -140], fov: 30 }}
>
<CameraControls windowWidth={windowWidth} />
<ambientLight intensity={0.6} />
<pointLight position={[-10, 100, -20]} intensity={0.5} />
<mesh
geometry={buildingsMesh}
onPointerDown={() => alert("touch")}
onPointerUp={() => alert("touch")}
onClick={() => alert("touch")}
onPointerOut={() => alert("touch")}
>
<meshStandardMaterial
attach="material"
transparent={true}
color={"white"}
/>
</mesh>
</Canvas>;