how to achieve two finger zoom onto image in a widget?

hi, i am using scene capture component 2d to load an object from scene onto a image inside widget. This is for android, I wanted to like zoom with two fingers so that this image zooms and resets when taken back… is it best to do in widget itself based on touch location and gesture, zoom the image accordingly or any other ways? thanks for answers

is it best to do in widget itself based on touch location and gesture,

I do not work with mobile (much) so I may be missing the point but it does sound like the way to go. At a glance it seems one can override this:

I’d experiment with Magnify and Delta. When it comes to zooming onto a specific location in an image, consider taking this apart:

Pretty sure some of it can be adapted.

thank you, i will try and update here