mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-13 06:29:31 -04:00
Use bindEvent for longStop as well
This commit is contained in:
parent
3be09a1c8f
commit
0e5dc920c8
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue