ontouchstart was not defined within goog.global, using the closure browser capability checks instead
This commit is contained in:
carlosperate
2015-01-04 03:42:01 +00:00
parent b9fdd5d7e3
commit 23388d51dd
3 changed files with 54 additions and 54 deletions

View File

@@ -115,7 +115,7 @@ Blockly.bindEvent_ = function(node, name, thisObject, func) {
* @type {Object}
*/
Blockly.bindEvent_.TOUCH_MAP = {};
if (goog.getObjectByName('document.documentElement.ontouchstart')) {
if (goog.events.BrowserFeature.TOUCH_ENABLED) {
Blockly.bindEvent_.TOUCH_MAP = {
'mousedown': ['touchstart'],
'mousemove': ['touchmove'],