Gestures in JUCE?

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.

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

2 Likes

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:

4 Likes

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

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.