Programmatically Stop a Gesture RRS feed

  • Question

  • Hi, 

    I'm just wondering if there was a way to take the pointerId's of an event and programmatically stop a gesture, even if the user is still interacting with the element. Specifically, I'm trying to detect when a user reaches a certain zoom level, and stop the content from zooming. I'd like to do this without over riding the built in zoom functionality if possible. My code so far, 

    document.getElementById("elem").addEventListener('MSContentZoom', onZoom, true);
    onZoom = function (evt) {
         if (evt.target.msContentZoomFactor <= this.min_zoom) {
    		        // If user scales to min zoom level, we want to stop zoom and wait until the current gesture is finished.

    Friday, January 25, 2013 8:19 PM