- Notifications
You must be signed in to change notification settings - Fork238
revert #168, fix #167#190
Uh oh!
There was an error while loading.Please reload this page.
Conversation
vercelbot commentedJan 23, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
The latest updates on your projects. Learn more aboutVercel for Git ↗︎
|
dummdidumm left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Looks good, only got one suggestion about code organization 👍
src/routes/tutorial/[slug]/state.js Outdated
| * while the editor is focused. Refocus the editor in these cases. | ||
| * This boolean tracks whether or not the editor should be refocused. | ||
| */ | ||
| exportletpreserve_editor_focus=false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
This state is only relevant to the editor, I'd suggest keeping it in there. We already havesvelte:window inEditor.svelte, which we can use to listen to messages as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
good catch, updated
tomoam commentedJan 26, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
dummdidumm commentedJan 26, 2023
Thanks for reporting, I pushed a fix that hopefully resolved this |
tomoam commentedJan 26, 2023
@dummdidumm lack.movI typed |
dummdidumm commentedJan 26, 2023
God this iframe stuff is so annoying - thanks for taking another look. Maybe also write down a list of manual tests for future reference so we know that further tweaks don't introduce regressions. |
tomoam commentedFeb 1, 2023
@dummdidumm |
#168 introduced a bug with focus management — if you click on a link inside the iframe, it focuses the editor. This reverts that PR andfixes#167 by emitting a message when the iframe receives a
pointerdownevent