Skip to content

Commit 88c6be9

Browse files
authored
Merge pull request scratchfoundation#1056 from paulkaplan/fix-horizontal-flyout
Fix horizontal flyout errors
2 parents 59bd9a9 + 3fb684e commit 88c6be9

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

core/flyout_base.js

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -556,17 +556,10 @@ Blockly.Flyout.prototype.clearOldBlocks_ = function() {
556556
* @private
557557
*/
558558
Blockly.Flyout.prototype.addBlockListeners_ = function(root, block, rect) {
559-
if (this.autoClose) {
560-
this.listeners_.push(Blockly.bindEventWithChecks_(root, 'mousedown', null,
561-
this.createBlockFunc_(block)));
562-
this.listeners_.push(Blockly.bindEventWithChecks_(rect, 'mousedown', null,
563-
this.createBlockFunc_(block)));
564-
} else {
565-
this.listeners_.push(Blockly.bindEventWithChecks_(root, 'mousedown', null,
566-
this.blockMouseDown_(block)));
567-
this.listeners_.push(Blockly.bindEventWithChecks_(rect, 'mousedown', null,
568-
this.blockMouseDown_(block)));
569-
}
559+
this.listeners_.push(Blockly.bindEventWithChecks_(root, 'mousedown', null,
560+
this.blockMouseDown_(block)));
561+
this.listeners_.push(Blockly.bindEventWithChecks_(rect, 'mousedown', null,
562+
this.blockMouseDown_(block)));
570563
this.listeners_.push(Blockly.bindEvent_(root, 'mouseover', block,
571564
block.addSelect));
572565
this.listeners_.push(Blockly.bindEvent_(root, 'mouseout', block,

0 commit comments

Comments
 (0)