mirror of
https://github.com/google/blockly.git
synced 2026-01-08 17:40:09 +01:00
Fixes google/blockly#40
ontouchstart was not defined within goog.global, using the closure browser capability checks instead
This commit is contained in:
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user