More tweaks to the on-going tension between giving machine elements focus (especially problematic when there are multiple machines) and preventing the page from being yanked around

This commit is contained in:
Jeff Parsons 2016-10-23 09:24:26 -07:00 committed by Jeff Parsons
commit 9ecb9e948f
15 changed files with 123 additions and 120 deletions

View file

@ -306,10 +306,11 @@ CPU.prototype.autoStart = function()
*/
if (this.flags.autoStart || (!DEBUGGER || !this.dbg) && this.bindings["run"] === undefined) {
/*
* Now we ALSO set fUpdateFocus when calling runCPU(), on the assumption that in the "auto-starting" context,
* a machine without focus is like a day without sunshine.
* We used to also set fUpdateFocus when calling runCPU(), on the assumption that in the "auto-starting"
* context, a machine without focus is like a day without sunshine, but in reality, focus should only be
* forced when the user takes some other machine-related action.
*/
this.runCPU(true);
this.runCPU();
return true;
}
return false;