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

Fix Viewer with Fullscreen mode toggle #9607

Merged
merged 2 commits into from
May 25, 2023

Conversation

ShGKme
Copy link
Contributor

@ShGKme ShGKme commented May 24, 2023

☑️ Resolves

🚧 Tasks

Fix

To work correctly in the Fullscreen mode, the Viewer should be mounted in Talk Vue app (#content-vue). Currently, it is moved from the body to #content-vue only once on Viewer open. It doesn't help when Fullscreen mode is enabled or disabled after the Viewer was opened.

See also: #6879

This PR moves the Viewer to watch.

Remove a 1-second timeout

Currently, there is a 1000ms timeout to wait until Viewer was mounted. But 1 second too much.

This PR uses nextTick to wait for one Vue scheduler iteration is enough.
Now opening a file is almost 1000ms faster in Talk 😀

🏁 Checklist

@ShGKme ShGKme added this to the 💙 Next RC (27) milestone May 24, 2023
@ShGKme ShGKme requested a review from nickvergessen May 24, 2023 14:21
@ShGKme ShGKme self-assigned this May 24, 2023
@ShGKme
Copy link
Contributor Author

ShGKme commented May 24, 2023

This PR is on top of #9596 to test with both issues resolved.

Rebase and merge after that PR merge.

@nickvergessen
Copy link
Member

Time to rebase?

Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
@ShGKme ShGKme force-pushed the fix/viewer-with-fullscreen-toggle branch from 479dbc1 to 42da355 Compare May 24, 2023 15:22
@ShGKme
Copy link
Contributor Author

ShGKme commented May 24, 2023

/backport to stable27

@ShGKme
Copy link
Contributor Author

ShGKme commented May 24, 2023

One bug left

Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
@ShGKme ShGKme marked this pull request as ready for review May 24, 2023 16:44
@nickvergessen nickvergessen merged commit 8fefa23 into master May 25, 2023
@nickvergessen nickvergessen deleted the fix/viewer-with-fullscreen-toggle branch May 25, 2023 05:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants