-
Notifications
You must be signed in to change notification settings - Fork 238
revert #168, fix #167 #190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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. | ||
*/ | ||
export let preserve_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 have svelte:window
in Editor.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
Thanks for reporting, I pushed a fix that hopefully resolved this |
@dummdidumm lack.movI typed |
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. |
@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 and fixes #167 by emitting a message when the iframe receives a
pointerdown
event