mirror of
https://github.com/google/blockly.git
synced 2026-01-13 03:47:08 +01:00
Fix insertion marker flickering on value inputs (PR #2295)
Merge from rachel-fenichel/bugfix/2255
This commit is contained in:
committed by
Andrew n marshall
parent
61e86b84d3
commit
90f6832d06
@@ -392,7 +392,9 @@ Blockly.Connection.prototype.isConnectionAllowed = function(candidate) {
|
||||
case Blockly.OUTPUT_VALUE: {
|
||||
// Don't offer to connect an already connected left (male) value plug to
|
||||
// an available right (female) value plug.
|
||||
if (candidate.isConnected() || this.isConnected()) {
|
||||
if ((candidate.isConnected() &&
|
||||
!candidate.targetBlock().isInsertionMarker()) ||
|
||||
this.isConnected()) {
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user