Skip to content
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

Story Map view resets when going to it from another file/tab #146

Open
Meorge opened this issue Oct 6, 2023 · 3 comments
Open

Story Map view resets when going to it from another file/tab #146

Meorge opened this issue Oct 6, 2023 · 3 comments

Comments

@Meorge
Copy link

Meorge commented Oct 6, 2023

When I leave the Story Map tab and then go back to it, the position resets to the origin. (I'm not closing the Story Map tab; it remains in the "open files" area the whole time.) I think this behavior is new - I thought it had been keeping its position in the past?

Twee3.Language.Tools.Story.Map.Resetting.mov
@cyrusfirheir
Copy link
Owner

This behavior is same as before. If you lock it to a side panel, it'll retain the position. When any webview goes out of view, it is destroyed to reclaim system resources because webviews are expensive. This behavior can be opted out of by the extension, but is generally not recommended.

On an aside, if you want to use the map like you are, in its own tab, try the browser version. It is available under the following setting:

Twee3 Language Tools > Story Map: Window Type

@Meorge
Copy link
Author

Meorge commented Oct 6, 2023

Hm ok, I must have just imagined it then. I'll give the browser version a try. Thanks for the quick response! 😄

It's not a high priority item, but in the future I wonder if it might be possible to have the position be cached and then reloaded when the webview is recreated, to make it feel like it's retaining its position? (Maybe one day I could try to contribute that...?)

@cyrusfirheir
Copy link
Owner

Should be simple enough to do, is just one coordinate to keep track of.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants