implement pinch to zoom
This commit is contained in:
+2
@@ -0,0 +1,2 @@
|
||||
components
|
||||
build
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
|
||||
0.0.1 / 2013-11-13
|
||||
==================
|
||||
|
||||
* Readme++
|
||||
* initial commit
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
|
||||
build: components index.js
|
||||
@component build --dev
|
||||
|
||||
components: component.json
|
||||
@component install --dev
|
||||
|
||||
clean:
|
||||
rm -fr build components template.js
|
||||
|
||||
.PHONY: clean
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
|
||||
# touchaction-property
|
||||
|
||||
Returns "touchAction", "msTouchAction", or null.
|
||||
See: http://msdn.microsoft.com/en-us/library/windows/apps/hh767313.aspx
|
||||
|
||||
## Installation
|
||||
|
||||
Install with [component(1)](http://component.io):
|
||||
|
||||
$ component install component/touchaction-property
|
||||
|
||||
## API
|
||||
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"name": "touchaction-property",
|
||||
"repo": "component/touchaction-property",
|
||||
"description": "Returns \"touchAction\", \"msTouchAction\", or null",
|
||||
"version": "0.0.1",
|
||||
"keywords": [
|
||||
"touch",
|
||||
"action",
|
||||
"ms",
|
||||
"microsoft",
|
||||
"pointer",
|
||||
"events"
|
||||
],
|
||||
"dependencies": {},
|
||||
"development": {},
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"scripts": [
|
||||
"index.js"
|
||||
]
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
|
||||
/**
|
||||
* Module exports.
|
||||
*/
|
||||
|
||||
module.exports = touchActionProperty();
|
||||
|
||||
/**
|
||||
* Returns "touchAction", "msTouchAction", or null.
|
||||
*/
|
||||
|
||||
function touchActionProperty(doc) {
|
||||
if (!doc) doc = document;
|
||||
var div = doc.createElement('div');
|
||||
var prop = null;
|
||||
if ('touchAction' in div.style) prop = 'touchAction';
|
||||
else if ('msTouchAction' in div.style) prop = 'msTouchAction';
|
||||
div = null;
|
||||
return prop;
|
||||
}
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "touchaction-property",
|
||||
"repo": "component/touchaction-property",
|
||||
"description": "Returns \"touchAction\", \"msTouchAction\", or null",
|
||||
"version": "0.0.1",
|
||||
"keywords": [
|
||||
"touch",
|
||||
"action",
|
||||
"ms",
|
||||
"microsoft",
|
||||
"pointer",
|
||||
"events"
|
||||
],
|
||||
"dependencies": {},
|
||||
"license": "MIT",
|
||||
"component": {
|
||||
"scripts": {
|
||||
"touchaction-property/index.js": "index.js"
|
||||
}
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/component/touchaction-property.git"
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
<html>
|
||||
<head>
|
||||
<script type="application/javascript" src="../build/build.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script type="application/javascript">
|
||||
document.body.innerHTML = String(require('touchaction-property'));
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user