implement pinch to zoom
This commit is contained in:
+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;
|
||||
}
|
||||
Reference in New Issue
Block a user