You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please provide the following information about your environment:
Development OS: Windows
Device OS & Version: What Android OS version (6.0)
Version: 2.14.0
Device(s): Samsung Galaxy S6
Description
I need to add a pinch gesture to zoom in Viro360Images ,I've already managed to implement the rotation via panning , and I added a gesture that targets the position value of the camera but it's not working the way I expected.
this.camera.setNativeProps({
position:[ 0 , 0 , -newZoomLevel ]
})
I expected to at least be able to change the position of the camera but it doesn't function as it suppose to
The text was updated successfully, but these errors were encountered:
This way, the onPinch() function will update the pinchStateGlobal in the state.
As the scale of the image depends of the pinchStateGlobal, it will scale up or down.
Worked for a basic image, hope it will help your for the 360 version
@FrancoisBourreescale and onPinch are not in the props of Viro360Image this would be a great feature to have, I have seen users have the expectation to touch pan and pinch zoom on content like this.
Environment
Please provide the following information about your environment:
Description
I need to add a pinch gesture to zoom in Viro360Images ,I've already managed to implement the rotation via panning , and I added a gesture that targets the position value of the camera but it's not working the way I expected.
this.camera.setNativeProps({
position:[ 0 , 0 , -newZoomLevel ]
})
I expected to at least be able to change the position of the camera but it doesn't function as it suppose to
The text was updated successfully, but these errors were encountered: