implement pinch to zoom

This commit is contained in:
marlon-erler
2026-08-30 16:15:14 +02:00
parent ea50704f8a
commit 7eb02f07dc
160 changed files with 15806 additions and 61 deletions
+2
View File
@@ -0,0 +1,2 @@
components
build
+6
View File
@@ -0,0 +1,6 @@
0.0.1 / 2013-11-13
==================
* Readme++
* initial commit
+11
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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>