fixed scroll-into-view glitch when adding scenes

snap7
jmoenig 2021-07-08 16:28:23 +02:00
rodzic 441e3e4d4d
commit c9366286f9
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -25,6 +25,7 @@
* gui: accelerated unified palette scrolling animation
* adjust scroll bars when refreshing the palette
* store: commented out saving the unified palette setting in the project xml during development
* gui: fixed scroll-into-view glitch when adding scenes
### 2021-07-07
* morphic, gui: tweaked perish() animation

Wyświetl plik

@ -5631,6 +5631,7 @@ IDE_Morph.prototype.switchToScene = function (scene, refreshAlbum) {
this.createCorral(!refreshAlbum); // keep scenes
this.selectSprite(this.scene.currentSprite);
this.corral.album.updateSelection();
this.fixLayout();
this.corral.album.contents.children.forEach(function (morph) {
if (morph.state) {
morph.scrollIntoView();
@ -5638,7 +5639,6 @@ IDE_Morph.prototype.switchToScene = function (scene, refreshAlbum) {
});
scene.applyGlobalSettings();
this.setUnifiedPalette(scene.unifiedPalette);
this.fixLayout();
this.world().keyboardFocus = this.stage;
};