Use bindEvent for longStop as well

This commit is contained in:
Rachel Fenichel 2016-11-16 16:57:00 -08:00
parent 3be09a1c8f
commit 0e5dc920c8

View file

@ -323,8 +323,8 @@ Blockly.init_ = function(mainWorkspace) {
Blockly.inject.bindDocumentEvents_ = function() {
if (!Blockly.documentEventsBound_) {
Blockly.bindEventWithChecks_(document, 'keydown', null, Blockly.onKeyDown_);
Blockly.bindEventWithChecks_(document, 'touchend', null, Blockly.longStop_);
Blockly.bindEventWithChecks_(document, 'touchcancel', null,
Blockly.bindEvent_(document, 'touchend', null, Blockly.longStop_);
Blockly.bindEvent_(document, 'touchcancel', null,
Blockly.longStop_);
// Don't use bindEvent_ for document's mouseup since that would create a
// corresponding touch handler that would squeltch the ability to interact