Hello,
do you know if exist a function to manage automaticcaly zoom in or zoom out by stretching or pitching movements on mobile ?
(Stretch: pressing two fingers together on the screen, move them away from each other as if stretching them apart )
Pinch: Pressing two fingers apart on the screen, move them towards each other as if pinching them together. )
It’s not too difficult - you just need to keep track of the first two touches, their starting positions (when the second touch is made),and work out the scale based on the touch positions relative to the centre of where the two touches started and their starting positions. Remember to use absolute values, to cater for touches moving past the centre.