kopia lustrzana https://github.com/backface/turtlestitch
fixed #1247 prevent multi-args from expanding / collapsing in the palette
rodzic
e812483b33
commit
ec6c5a952f
|
@ -149,7 +149,7 @@ isSnapObject, copy, PushButtonMorph, SpriteIconMorph*/
|
|||
|
||||
// Global stuff ////////////////////////////////////////////////////////
|
||||
|
||||
modules.blocks = '2016-July-04';
|
||||
modules.blocks = '2016-July-05';
|
||||
|
||||
var SyntaxElementMorph;
|
||||
var BlockMorph;
|
||||
|
@ -10357,6 +10357,13 @@ MultiArgMorph.prototype.removeInput = function () {
|
|||
// MultiArgMorph events:
|
||||
|
||||
MultiArgMorph.prototype.mouseClickLeft = function (pos) {
|
||||
// prevent expansion in the palette
|
||||
// (because it can be hard or impossible to collapse again)
|
||||
if (this.parentThatIsA(BlockMorph).isTemplate &&
|
||||
!this.parentThatIsA(ScriptsMorph)) {
|
||||
this.escalateEvent('mouseClickLeft', pos);
|
||||
return;
|
||||
}
|
||||
// if the <shift> key is pressed, repeat action 5 times
|
||||
var arrows = this.arrows(),
|
||||
leftArrow = arrows.children[0],
|
||||
|
|
Ładowanie…
Reference in New Issue