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

Renderer._needsFullRefresh is never reset to false #1975

Closed
akosyakov opened this issue Mar 22, 2019 · 4 comments
Closed

Renderer._needsFullRefresh is never reset to false #1975

akosyakov opened this issue Mar 22, 2019 · 4 comments
Labels
type/bug Something is misbehaving
Milestone

Comments

@akosyakov
Copy link

I am debugging eclipse-theia/theia#3838 and noticed that on first drag _isPaused set to true, on second _needsFullRefresh is also true, so no refresh happens. Afterwards it does not matter what user is doing values of _isPaused and _needsFullRefresh don't get changed. Is it on purpose or _needsFullRefresh should be reset to false in onIntersectionChange? Should we call something else to force refresh after reattaching xterm from one parent to another?

@Tyriar
Copy link
Member

Tyriar commented Mar 23, 2019

It looks like _needsFullRefresh does need to get reset after the refresh happens (as a full refresh has occurred).

@Tyriar Tyriar added this to the 3.13.0 milestone Mar 23, 2019
@Tyriar Tyriar added type/bug Something is misbehaving area/renderer labels Mar 23, 2019
Tyriar added a commit to Tyriar/xterm.js that referenced this issue Mar 23, 2019
@Tyriar
Copy link
Member

Tyriar commented Mar 23, 2019

PR is out to fix it, I don't think this would fix eclipse-theia/theia#3838 though? The bug seems to be that once a full refresh occurs, every time an unpause happens a full refresh happens, even if it's not needed.

Tyriar added a commit to microsoft/xterm.js that referenced this issue Mar 23, 2019
@akosyakov
Copy link
Author

We just need to upgrade xterm, in our version not most recent intersection observer entry is used. 69d3a46 fixes the issue

@Tyriar
Copy link
Member

Tyriar commented Mar 23, 2019

@akosyakov makes sense, and thanks for finding the bug 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something is misbehaving
Projects
None yet
Development

No branches or pull requests

2 participants