Reputation: 21
we have tried capturing the event using following code in our JQuery.. but swipe is not working.
if (window.navigator.msPointerEnabled) {
this.element.addEventListener("MSPointerDown", eventHandlerName, false);
this.element.addEventListener("MSPointerMove", eventHandlerName, false);
this.element.addEventListener("MSPointerUp", eventHandlerName, false);
}
Upvotes: 1
Views: 2120
Reputation: 1064
Found this question, the answer above did not work for me too, what did work was:
html, img {
-ms-content-zooming: none;
-ms-touch-action: none;
-ms-overflow-style: none;
}
Upvotes: 0
Reputation: 82241
Use css style for slider element.:
-ms-touch-action: none;
Upvotes: 3