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
+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;
}