# Gestures in JUCE?

**URL:** <https://forum.juce.com/t/gestures-in-juce/38947>\
**Category:** Audio Plugins\
**Created:** [April 22, 2020, 4:32pm UTC](https://forum.juce.com/t/gestures-in-juce/38947 "2020-04-22T16:32:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![HowardAntares](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/howardantares/32/4629_2.png) [@HowardAntares](https://forum.juce.com/u/HowardAntares)\
**Post date:** [April 22, 2020, 4:32pm UTC](https://forum.juce.com/t/gestures-in-juce/38947/1 "2020-04-22T16:32:04Z")

</div>

Are there facilities for responding to trackpad/touchscreen gestures? Our users would love to be able to pinch to zoom in, etc., in our graphs. I see discussion of this quite a few years ago, but nothing lately, and don’t see any explicit support at the Component level.

---

<div class="post-metadata">

**Author:** ![RolandMR](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/rolandmr/32/641_2.png) [@RolandMR](https://forum.juce.com/u/RolandMR)\
**Post date:** [April 22, 2020, 4:41pm UTC](https://forum.juce.com/t/gestures-in-juce/38947/2 "2020-04-22T16:41:35Z")

</div>

There is `virtual void mouseMagnify (const MouseEvent& event, float scaleFactor);` for pinch to zoom.

---

<div class="post-metadata">

**Author:** ![onereddog](https://avatars.discourse-cdn.com/v4/letter/o/dbc845/32.png) [@onereddog](https://forum.juce.com/u/onereddog)\
**Post date:** [April 27, 2020, 12:25pm UTC](https://forum.juce.com/t/gestures-in-juce/38947/3 "2020-04-27T12:25:19Z")

</div>

Depends on the platform. I believe mouseMagnify only works on Mac/Windows. If you want native gestures on iOS, I recently hacked my fork of JUCE to do this:

> <https://github.com/onereddogmedia/JUCE/commit/b3726f10846a9f9c8c687dfbeaa5700b54be88cc>

---

<div class="post-metadata">

**Author:** ![HowardAntares](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/howardantares/32/4629_2.png) [@HowardAntares](https://forum.juce.com/u/HowardAntares)\
**Post date:** [April 27, 2020, 1:16pm UTC](https://forum.juce.com/t/gestures-in-juce/38947/4 "2020-04-27T13:16:22Z")

</div>

Thanks. Mac/Windows is all I need. Don’t know how I missed that one.

---

<div class="post-metadata">

**Author:** ![ishinomaru](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ishinomaru/32/21418_2.png) [@ishinomaru](https://forum.juce.com/u/ishinomaru)\
**Post date:** [March 27, 2024, 12:07pm UTC](https://forum.juce.com/t/gestures-in-juce/38947/5 "2024-03-27T12:07:28Z")

</div>

I want to do pinch-in zoom, etc. on iOS. Is this supported by the latest JUCE?  
I tried to apply the patch from a past post but it didn’t work, probably because the code has changed so much.  
I would like to know if anyone knows how to handle this.
