tweaks to Morphic by Craig Latta

upd4.1
Jens Mönig 2017-08-01 10:21:35 +02:00
rodzic 1cecb672d5
commit ba87691827
2 zmienionych plików z 8 dodań i 2 usunięć

Wyświetl plik

@ -3564,6 +3564,10 @@ Fixes:
* Blocks, Objects: fixed PianoMenu to work with block zoom etc.
* Threads, Objects, Blocks, Store: added “instruments”: sine, square, sawtooth, triangle waves
170801
------
Morphic: Tweaks by Craig Latta (thanks!)
Features:
* polymorphic sprite-local custom blocks
@ -3587,6 +3591,7 @@ Features:
* new "pen trails" reporter primitive and stage context menu entry
* two-item lists as x-y coordinate arguments for "point towards" and "go to" primitives
* Piano keyboard as drop-down menu for entering musical notes, Thanks, Michael!
* Basic “instruments” support: sine, square, sawtooth and triangle waves
Fixes:
* changed keyboard shortcut indicator for “find blocks” to “^”

Wyświetl plik

@ -1161,7 +1161,7 @@
/*global window, HTMLCanvasElement, FileReader, Audio, FileList*/
var morphicVersion = '2017-July-07';
var morphicVersion = '2017-August-01';
var modules = {}; // keep track of additional loaded modules
var useBlurredShadows = getBlurredShadowSupport(); // check for Chrome-bug
@ -5266,6 +5266,7 @@ CursorMorph.prototype.initializeClipboardHandler = function () {
this.clipboardHandler = document.createElement('textarea');
this.clipboardHandler.style.position = 'absolute';
this.clipboardHandler.style.top = window.outerHeight;
this.clipboardHandler.style.right = '101%'; // placed just out of view
document.body.appendChild(this.clipboardHandler);
@ -10372,9 +10373,9 @@ ListMorph.prototype.buildListContents = function () {
myself.doubleClickAction
);
});
this.listContents.setPosition(this.contents.position());
this.listContents.isListContents = true;
this.listContents.drawNew();
this.listContents.setPosition(this.contents.position());
this.addContents(this.listContents);
};