In Javascript, I am trying to detect when a user is pinched while at the same time allowing them to do this.
var elm = $("#wrapper")[0]; var myGesture = new MSGesture(); myGesture.target = elm; elm.addEventListener("MSGestureChange", handleGesture); elm.addEventListener("MSPointerDown", function (e) { myGesture.addPointer(e.pointerId); });
I get an MSPointerDown event.
But as far as I can tell, I need to fine-tune this element (#wrapper) with -ms-touch-action: none (or pan-y pan-x) to get the MSGestureChange event when pinched,
I don't want to obstruct the default behavior, so what are my options?
Is there a way around this, or am I sticking to one or the other?
source share