The tutorial begun from the welcome window on a first visit: the "New here?" question no longer comes up over it (reported: "now i cant do the tutorial on PC. i cant click draw", then "i opened the page in incognito").
On a first visit (a private window is one, every time) the welcome window's own Tutorial button closed the window - which is what asks, a moment later, whether to start the tutorial - and started it. The question came up over the tutorial already running: the tutorial lets nothing be tapped but its lit spot, so neither of the question's buttons could be, and the question lay over Draw. Nothing could be done but to reload. The question is not asked while the tutorial is running or on its way (its new project being opened); and starting the tutorial, from anywhere, takes the question down if it is up. In the app, with a real mouse, the first visit's flag cleared: the live site first - the question over the tutorial, as reported. With the change: Tutorial in the welcome window - the tutorial, no question; Draw, Circle and the circle's centre clicked, each taken, no pointer left down. Then all 45 steps as a mouse does them (down, the tutorial's frame, up, the click), the app idle after each; ten steps in History, both bodies sound. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
+10
-2
@@ -1742,8 +1742,12 @@ export class App implements AppContext {
|
||||
},
|
||||
});
|
||||
this.tutorial = tutorial;
|
||||
moreItem("m-tutorial", () => void tutorial.start());
|
||||
this.startTutorial = () => void tutorial.start();
|
||||
moreItem("m-tutorial", () => this.startTutorial());
|
||||
this.startTutorial = () => {
|
||||
// (The question whether to start it, should it be up: answered.)
|
||||
document.querySelector(".dialog.tutorial-ask")?.closest(".dialog-back")?.remove();
|
||||
void tutorial.start();
|
||||
};
|
||||
// About: the README, in the app. Support links open in a new tab (no access back to this page).
|
||||
moreItem("m-about", () => showAbout());
|
||||
// Feedback: a bug report, suggestion or discussion, posted on r/supergeometry (Reddit's page, in a new tab).
|
||||
@@ -2090,6 +2094,10 @@ export class App implements AppContext {
|
||||
this.tutorialAsked();
|
||||
// (After what closing the window started - a new project, a file being opened - has had its turn.)
|
||||
setTimeout(() => {
|
||||
// (The welcome window was closed by its own Tutorial button: the tutorial is running, there is nothing to
|
||||
// ask - the question came up over it, where the tutorial lets nothing be tapped but its lit spot. Reported:
|
||||
// "now i cant do the tutorial on PC. i cant click draw", in a private window - a first visit.)
|
||||
if (this.tutorial?.running) return;
|
||||
const back = el("div", "dialog-back");
|
||||
const box = el("div", "dialog tutorial-ask");
|
||||
box.append(el("div", "panel-title", "New here?"), el("div", "tutorial-ask-text", "The tutorial builds a bolt and the nut that fits it with you, one tap at a time. It takes a few minutes."));
|
||||
|
||||
+10
-3
@@ -205,14 +205,21 @@ export class Tutorial {
|
||||
if (e.type !== "pointermove" && e.cancelable) e.preventDefault();
|
||||
};
|
||||
|
||||
/** Running, or on its way (its new project being opened). */
|
||||
get running(): boolean {
|
||||
return this.on;
|
||||
return this.on || this.starting;
|
||||
}
|
||||
private starting = false;
|
||||
|
||||
/** Begin: a new project (what is open is saved and stays in the list of projects), and the first thing to tap. */
|
||||
async start(): Promise<void> {
|
||||
if (this.on) return;
|
||||
await this.host.newProject();
|
||||
if (this.on || this.starting) return;
|
||||
this.starting = true;
|
||||
try {
|
||||
await this.host.newProject();
|
||||
} finally {
|
||||
this.starting = false;
|
||||
}
|
||||
this.host.setUp();
|
||||
this.host.closePanels();
|
||||
// The same bolt on every screen: the view as near as makes its rod's 5 mm radius 52 px - a spot a finger
|
||||
|
||||
Reference in New Issue
Block a user