diff --git a/core/workspace_svg.js b/core/workspace_svg.js index e1e63fac0..f72bbef7e 100644 --- a/core/workspace_svg.js +++ b/core/workspace_svg.js @@ -135,6 +135,9 @@ Blockly.WorkspaceSvg.prototype.createDom = function(opt_backgroundClass) { } Blockly.bindEvent_(this.svgGroup_, 'mousedown', this, this.onMouseDown_); + var thisWorkspace = this; + Blockly.bindEvent_(this.svgGroup_, 'touchstart', null, + function(e) {Blockly.longStart_(e, thisWorkspace);}); // Determine if there needs to be a category tree, or a simple list of // blocks. This cannot be changed later, since the UI is very different.