Lutz Roeder 4 лет назад
Родитель
Сommit
4bc886a098
2 измененных файлов с 6 добавлено и 5 удалено
  1. 2 2
      source/electron.js
  2. 4 3
      source/index.js

+ 2 - 2
source/electron.js

@@ -103,8 +103,6 @@ host.ElectronHost = class {
     }
 
     start() {
-        this._view.show('welcome');
-
         if (this._queue) {
             const queue = this._queue;
             delete this._queue;
@@ -194,6 +192,8 @@ host.ElectronHost = class {
             }
             return false;
         });
+
+        this._view.show('welcome');
     }
 
     environment(name) {

+ 4 - 3
source/index.js

@@ -26,8 +26,8 @@ host.BrowserHost = class {
         this._version = this._meta.version ? this._meta.version[0] : null;
         this._telemetry = this._version && this._version !== '0.0.0';
         this._environment = new Map();
-        this._environment.set('zoom', 'drag');
-        // this._environment.set('zoom', 'scroll');
+        this._environment.set('zoom', 'scroll');
+        // this._environment.set('zoom', 'drag');
     }
 
     get window() {
@@ -215,7 +215,6 @@ host.BrowserHost = class {
             return;
         }
 
-        this._view.show('welcome');
         const openFileButton = this.document.getElementById('open-file-button');
         const openFileDialog = this.document.getElementById('open-file-dialog');
         if (openFileButton && openFileDialog) {
@@ -257,6 +256,8 @@ host.BrowserHost = class {
                 }
             }
         });
+
+        this._view.show('welcome');
     }
 
     environment(name) {