Disable touch gestures?

688
1
03-12-2012 09:44 AM
Labels (1)
JosephEggert
New Contributor
When we upgraded from 2.0 to 2.4, we noticed the addition of touch gestures in 2.1 changed how our program worked.  I added some code to capture those touch events before ESRI did, but it isn't working as smooth as I would like for some reason.  I was wondering if there was a way to disable ESRI's subscription to touch events so they can be promoted to mouse events.

Thank you.
0 Kudos
1 Reply
JenniferNery
Esri Regular Contributor
You can use MapGesture events to handle touch and then exclude the mouse promoted events using the following code:

            if (e.StylusDevice != null && e.StylusDevice.TabletDevice != null && 
    e.StylusDevice.TabletDevice.Type == TabletDeviceType.Touch)
            return;
0 Kudos