# BR: Windows touch and gestures don't seem to work

**URL:** <https://forum.juce.com/t/br-windows-touch-and-gestures-dont-seem-to-work/46188>\
**Category:** Windows\
**Created:** [May 25, 2021, 7:54pm UTC](https://forum.juce.com/t/br-windows-touch-and-gestures-dont-seem-to-work/46188 "2021-05-25T19:54:36Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jrlanglois](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jrlanglois/32/21372_2.png) [@jrlanglois](https://forum.juce.com/u/jrlanglois)\
**Post date:** [May 25, 2021, 7:54pm UTC](https://forum.juce.com/t/br-windows-touch-and-gestures-dont-seem-to-work/46188/1 "2021-05-25T19:54:36Z")

</div>

I’m interested in getting pinch to zoom support working in my apps on Windows.

Using my Thinkpad P50, I know for a fact that the trackpad sends a pinch to zoom event because it’s detected as such in (most?) web browsers, and even MSVC detects this to change the zoom. So, I’m assuming this means I have a mouse input source that’s either touch or gesture compatible (sorry, still learning the difference and I’m not sure which is which!).

The issue is this; when debugging my apps, I don’t receive either type of Win32 event. I do see that the touch input is registered (`canUseMultiTouch` is true and `registerTouchWindow` returns true). And according to the MSDN, the window handle can be set to touch or not… By default, gestures are enabled. When touch is enabled (as per `registerTouchWindow`) then gestures are disabled. So I tried not calling this at all to see if I can gestures and… nope!

As I’m grasping at straws troubleshooting this, I tried sticking a call to `GetMessageExtraInfo` during the mouse/pointer down events and it comes up with `0`.

Anybody have any ideas here?

---

<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:** [October 18, 2021, 2:39pm UTC](https://forum.juce.com/t/br-windows-touch-and-gestures-dont-seem-to-work/46188/2 "2021-10-18T14:39:54Z")

</div>

Bump! Same problem here on my Dell Inspiron PC laptop.

---

<div class="post-metadata">

**Author:** ![JeffMcClintock](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jeffmcclintock/32/21430_2.png) [@JeffMcClintock](https://forum.juce.com/u/JeffMcClintock)\
**Post date:** [October 18, 2021, 8:08pm UTC](https://forum.juce.com/t/br-windows-touch-and-gestures-dont-seem-to-work/46188/3 "2021-10-18T20:08:46Z")

</div>

I also notice if I use touch on the JUCE standalone target 'options" menu, the menu appears far to the left of the app. (I’m on a 4k monitor, so maybe it’s related to that.

---

<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:** [October 20, 2021, 8:34pm UTC](https://forum.juce.com/t/br-windows-touch-and-gestures-dont-seem-to-work/46188/4 "2021-10-20T20:34:13Z")

</div>

I tried modifying the win32 message handler to use WM\_GESTURE (instead of the constant 0x119), just in case that was the issue. No difference. That message never arrives. I also tried adding the WM\_GESTURENOTIFY case in order to turn _all_ gestures on for the window, but we still do not get the WM\_GESTURE message when pinching on the trackpad.

Has anyone implemented pinch to zoom (mouseMagnify) on Windows? If so, how??? I have had no luck trying to find why we never get that message.

---

<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:** [October 20, 2021, 9:06pm UTC](https://forum.juce.com/t/br-windows-touch-and-gestures-dont-seem-to-work/46188/5 "2021-10-20T21:06:12Z")

</div>

I also tried commenting out the call to registerTouchWindow() which I read would prevent trackpads from issuing those Windows messages. Still no luck.

(Did the folks at JUCE simply give up on this at some point?)

---

<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:** [February 4, 2022, 2:59pm UTC](https://forum.juce.com/t/br-windows-touch-and-gestures-dont-seem-to-work/46188/6 "2022-02-04T14:59:36Z")

</div>

Has anyone gotten this to work? It’s not an ideal situation, having a feature work on Mac but not on PC.

---

<div class="post-metadata">

**Author:** ![fireplayer](https://avatars.discourse-cdn.com/v4/letter/f/48db29/32.png) [@fireplayer](https://forum.juce.com/u/fireplayer)\
**Post date:** [June 6, 2022, 6:41pm UTC](https://forum.juce.com/t/br-windows-touch-and-gestures-dont-seem-to-work/46188/7 "2022-06-06T18:41:47Z")

</div>

I have the latest juce and can not get mouseMagnify to work.  
I put a break point at 0x119 as stated above and it never get here.

(Did the folks at JUCE simply give up on this at some point?)

---

<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:** [June 27, 2022, 8:01pm UTC](https://forum.juce.com/t/br-windows-touch-and-gestures-dont-seem-to-work/46188/8 "2022-06-27T20:01:59Z")

</div>

Is this working in JUCE 7? I haven’t heard a single word from anyone at JUCE about this missing feature.

---

<div class="post-metadata">

**Author:** ![MBO](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/mbo/32/5045_2.png) [@MBO](https://forum.juce.com/u/MBO)\
**Post date:** [February 26, 2023, 3:40pm UTC](https://forum.juce.com/t/br-windows-touch-and-gestures-dont-seem-to-work/46188/9 "2023-02-26T15:40:16Z")

</div>

Bump again… I don’t have any touchscreen to test it on Windows now. Does this feature work on Windows?
