viro
viro copied to clipboard
onTouch event is not working
Requirements:
Please go through this checklist before opening a new issue
- [X] Review the documentation
- [X] Search for existing issues in: ViroCommunity/viro
- [X] Use the latest ViroReact release
Environment
Please provide the following information about your environment:
- Development OS: Mac
- Device OS & Version: iOS 15.7.6
- Version: ViroReact 2.41.1, ReactNative 0.73.6
- 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
- Create a project with Viro
- Add Viro3DSceneNavigator, create initial scene with
<ViroScene onTouch={(a, b) => console.log('touch: ', a, b)}>
- Try to touch your device screen. Nothing will happen.
- It would work if we update onTouch to onRotate and touch the screen with 2 fingers and then rotate.
Will this event be implemented in the future for a 3d scene?