Pinch to zoom not working

Hi, I want to pinch to zoom on my mobile app. The command does get executed without any errors but
i do not see the action being done on my mobile app. Any comments? Thanks.

‘Get Element Height of “camera stream” Element’
ele_Height = Mobile.getElementHeight(findTestObject(‘Object Repository/Home Screen/Camera and Camera Settings/android.widget.FrameLayout’), 30)

‘Get Element Width of “camera stream” Element’

ele_Width = Mobile.getElementWidth(findTestObject(‘Object Repository/Home Screen/Camera and Camera Settings/android.widget.FrameLayout’), 30)

‘Pinch to zoom in at position 200,300’
Mobile.pinchToZoomInAtPosition(ele_Height, ele_Width, 200)

I am not a mobile Tester, however, I would imaging that you would need to touch the element you want to zoom in on. You are using the length and width of your element in your method, but wouldn’t you be off your element. It would be like trying to sit on a chair by sitting down beside it. How about (I also reduced the amount of “offset” to start):

'Pinch to zoom in'
Mobile.pinchToZoomInAtPosition((int)Math.round(ele_Height/2), (int)Math.round(ele_Width/2), 50)