MCPcopy Create free account
hub / github.com/microsoft/SandDance / getTouchActionProps

Function getTouchActionProps

docs/app/js/sanddance-app.js:93458–93475  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93456 return TOUCH_ACTION_AUTO;
93457 }
93458 function getTouchActionProps() {
93459 if (!NATIVE_TOUCH_ACTION) return false;
93460 var touchMap = {};
93461 var cssSupports = window.CSS && window.CSS.supports;
93462 [
93463 "auto",
93464 "manipulation",
93465 "pan-y",
93466 "pan-x",
93467 "pan-x pan-y",
93468 "none"
93469 ].forEach(function(val) {
93470 // If css.supports is not supported but there is native touch-action assume it supports
93471 // all values. This is the case for IE 10 and 11.
93472 touchMap[val] = cssSupports ? window.CSS.supports("touch-action", val) : true;
93473 });
93474 return touchMap;
93475 }
93476 /**
93477 * Recognizer flow explained; *
93478 * All recognizers have the initial state of POSSIBLE when a input session starts.

Callers 1

sanddance-app.jsFile · 0.70

Calls 1

forEachMethod · 0.45

Tested by

no test coverage detected