# (How To) Pinch to Zoom

**URL:** <https://forums.unrealengine.com/t/how-to-pinch-to-zoom/89045>\
**Category:** Mobile\
**Tags:** unreal-engine, iOS\
**Created:** [April 1, 2017, 8:13pm UTC](https://forums.unrealengine.com/t/how-to-pinch-to-zoom/89045 "2017-04-01T20:13:54Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![DMHokie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DMHokie](https://forums.unrealengine.com/u/DMHokie)\
**Post date:** [April 1, 2017, 8:13pm UTC](https://forums.unrealengine.com/t/how-to-pinch-to-zoom/89045/1 "2017-04-01T20:13:54Z")

</div>

Does anyone have any example blueprints on how to get pinch to zoom to work? I can’t seem to figure it out. I have it so I can scroll the mouse wheel to zoom in and out, but how do I utilize the pinch gesture on a mobile device?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_11ef6712](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_11ef6712](https://forums.unrealengine.com/u/anonymous_user_11ef6712)\
**Post date:** [August 14, 2017, 7:27am UTC](https://forums.unrealengine.com/t/how-to-pinch-to-zoom/89045/3 "2017-08-14T07:27:18Z")

</div>

I’m still working on it but here’s what I’ve got so far.

 ![UE4 Pinch to Zoom.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/5/f582908ed52a1307ef0be687f72ba72d2b9a81b1.jpeg)

---

<div class="post-metadata">

**Author:** ![sadbutrue](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sadbutrue](https://forums.unrealengine.com/u/sadbutrue)\
**Post date:** [January 25, 2018, 12:42pm UTC](https://forums.unrealengine.com/t/how-to-pinch-to-zoom/89045/4 "2018-01-25T12:42:47Z")

</div>

This is what i came up with using touchinputstate x and y difference for pinch zooming. But it zoom in to the center of the screen. I want it to zoom in to center of my fingers naturally. Its hard to test it in a pc without multi touch capabilities really. Hope someone would get inspiration from this and make it better…

---

<div class="post-metadata">

**Author:** ![Dtb49](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dtb49](https://forums.unrealengine.com/u/Dtb49)\
**Post date:** [September 13, 2018, 3:47pm UTC](https://forums.unrealengine.com/t/how-to-pinch-to-zoom/89045/5 "2018-09-13T15:47:03Z")

</div>

I know this is an older thread but it got me on the right track so I thought I’d post my solution. I used necival’s solution as a base starting point. I found that zooming in worked really well with it but zooming out didn’t work so well. So I decided to basically normalize the pinch axis value between -1 and 1. However, this is tricky because anything greater than 1 is considered zooming in. So, I had to do two separate normalizations but the Zoom calculations could stay the same.

 ![Normalize.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/d/8d72f53b62369865b30d7faff706f8181ecac574.png)

**The above picture where the pop is blocking the node is a subtraction node**

---

<div class="post-metadata">

**Author:** ![shawnxhu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shawnxhu](https://forums.unrealengine.com/u/shawnxhu)\
**Post date:** [November 14, 2019, 3:28am UTC](https://forums.unrealengine.com/t/how-to-pinch-to-zoom/89045/6 "2019-11-14T03:28:15Z")

</div>

> [@necival](#):
>
> I’m still working on it but here’s what I’ve got so far.
> 
> ![UE4 Pinch to Zoom.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/5/f582908ed52a1307ef0be687f72ba72d2b9a81b1.jpeg)

Thanks a lot for the good exsample.  
I found the AxisValue PinchTouch return is not distance of two finger touch Location.  
I’d like to know the definition of AxisValue

---

<div class="post-metadata">

**Author:** ![st.shaeen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@st.shaeen](https://forums.unrealengine.com/u/st.shaeen)\
**Post date:** [February 17, 2020, 5:17pm UTC](https://forums.unrealengine.com/t/how-to-pinch-to-zoom/89045/7 "2020-02-17T17:17:24Z")

</div>

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/f/6/4f6cdd64b836123f23b75d67807f13494505ea74.jpeg "UE4 Pinch to Zoom tutorial") ](https://www.youtube.com/watch?v=gRfmXn4Kukk)

---

<div class="post-metadata">

**Author:** ![chuklov](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@chuklov](https://forums.unrealengine.com/u/chuklov)\
**Post date:** [August 14, 2020, 8:43pm UTC](https://forums.unrealengine.com/t/how-to-pinch-to-zoom/89045/8 "2020-08-14T20:43:42Z")

</div>

![Zoom1.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/7/876074c0a56a72b85ffb1c194abd3c184a88450c.png)I have made my own Zoom with Zoom In and Out without releasing a second finger.  
Camera Zoom speed I left 20 as it works best for me.

 ![Zoom2.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/6/d/6d633812d48f1165fbfd8782ff1b233fd4f68910.png)

---

<div class="post-metadata">

**Author:** ![Dhafer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dhafer](https://forums.unrealengine.com/u/Dhafer)\
**Post date:** [May 13, 2023, 10:57am UTC](https://forums.unrealengine.com/t/how-to-pinch-to-zoom/89045/9 "2023-05-13T10:57:38Z")

</div>

Hi how are you , Please send this nod or make video i make it but doesn’t work, Thanks.

---

<div class="post-metadata">

**Author:** ![chuklov](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@chuklov](https://forums.unrealengine.com/u/chuklov)\
**Post date:** [May 20, 2023, 8:42pm UTC](https://forums.unrealengine.com/t/how-to-pinch-to-zoom/89045/10 "2023-05-20T20:42:29Z")

</div>

Hi @Dhafer,

Which nod are we talking about?

Also this code is for UE4 and I have not check it on UE5

BR.
