Tom
Tom

Reputation: 12669

getting MSPointerUp events to fire without disabling browser interaction in IE10

I am trying to get some code to kick in after the browser has been scrolled.

If I do

function handleDown(event) {
   console.log("down");
}

function handleUp(event) {
   console.log("up");
}

window.addEventListener("MSPointerDown", handleDown, false);
window.addEventListener("MSPointerUp", handleUp, false);

Along with CSS

 html {
    -ms-content-zooming: none; /* Disable pan/zoom */
    overflow:hidden;
 }

The events fire properly. However if I remove the overflow:hiddem and scroll the browser then the up event doesn't fire. Is there a way to have the browser respond normally to scrolling via touch but still fire the MSPointerUp event?

Upvotes: 3

Views: 1218

Answers (1)

michal.domeredzki
michal.domeredzki

Reputation: 11

You can use style="-ms-touch-action: pan-y", so you will able to scroll webView, and have horizontal MSEvents, more options you can find here : http://msdn.microsoft.com/en-us/library/windows/apps/Hh767313.aspx

Upvotes: 1

Related Questions