kopia lustrzana https://github.com/backface/turtlestitch
simplify expansion prevention in the palette
rodzic
ec6c5a952f
commit
18f94e6197
|
@ -10359,8 +10359,7 @@ MultiArgMorph.prototype.removeInput = function () {
|
||||||
MultiArgMorph.prototype.mouseClickLeft = function (pos) {
|
MultiArgMorph.prototype.mouseClickLeft = function (pos) {
|
||||||
// prevent expansion in the palette
|
// prevent expansion in the palette
|
||||||
// (because it can be hard or impossible to collapse again)
|
// (because it can be hard or impossible to collapse again)
|
||||||
if (this.parentThatIsA(BlockMorph).isTemplate &&
|
if (!this.parentThatIsA(ScriptsMorph)) {
|
||||||
!this.parentThatIsA(ScriptsMorph)) {
|
|
||||||
this.escalateEvent('mouseClickLeft', pos);
|
this.escalateEvent('mouseClickLeft', pos);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue