Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

-webkit-touch-callout equivalent for IE

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 ?

like image 284
Eugene Gordin Avatar asked Feb 21 '13 21:02

Eugene Gordin


3 Answers

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;
like image 91
bizzehdee Avatar answered Nov 12 '22 17:11

bizzehdee


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

like image 4
ahhhbuddye Avatar answered Nov 12 '22 16:11

ahhhbuddye


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(); })
like image 4
Chris Love Avatar answered Nov 12 '22 17:11

Chris Love