viro icon indicating copy to clipboard operation
viro copied to clipboard

onTouch event is not working

Open yauhenicharniauski opened this issue 5 months ago • 2 comments

Requirements:

Please go through this checklist before opening a new issue

Environment

Please provide the following information about your environment:

  1. Development OS: Mac
  2. Device OS & Version: iOS 15.7.6
  3. Version: ViroReact 2.41.1, ReactNative 0.73.6
  4. Device(s): iPhone 7

Description

I have <ViroScene /> component. I've added to this component 'onRotate' event and it works fine. But when I want to use onTouch instead, the onTouch event is not working.

<ViroScene onTouch={(a, b) => console.log('touch: ', a, b)}>

I use Viro3DSceneNavigator.

Reproducible Demo

  1. Create a project with Viro
  2. Add Viro3DSceneNavigator, create initial scene with <ViroScene onTouch={(a, b) => console.log('touch: ', a, b)}>
  3. Try to touch your device screen. Nothing will happen.
  4. It would work if we update onTouch to onRotate and touch the screen with 2 fingers and then rotate.

yauhenicharniauski avatar Mar 14 '24 15:03 yauhenicharniauski

Will this event be implemented in the future for a 3d scene?

yauhenicharniauski avatar Mar 18 '24 08:03 yauhenicharniauski