Using the Surface, it is possible to hold your finger on a link and get an option to copy it. This is undesired behavior for me. This can be disabled in iOS with:
-webkit-touch-callout: none;
does anyone know how to disable it for IE ?
named slightly differently for everything else.
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
You might be looking for:
-ms-touch-select: none;
-ms-touch-action: none;
Together with above, I also use this on body{} for auto hiding scrollbars in IE 10:
-ms-overflow-style: -ms-autohiding-scrollbar;
There are more here: http://msdn.microsoft.com/en-us/library/windows/apps/hh996923.aspx
You can also cancel the default response by binding an event callback to the contextmenu event. This works in IE for touch like it always has in all browsers for mouse:
window.addEventListener("contextmenu", function(e) { e.preventDefault(); })
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With