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

Race problem with sendMessage - receiveMessage #5

Open
sindresorhus opened this issue Sep 16, 2011 · 3 comments
Open

Race problem with sendMessage - receiveMessage #5

sindresorhus opened this issue Sep 16, 2011 · 3 comments
Labels

Comments

@sindresorhus
Copy link
Contributor

If I do a .receiveMessage() right after an .sendMessage(), the scrolling is set on the .sendMessage() and not on the last item .receiveMessage(), like it should, so the last .receiveMessage() is not shown, and I have to scroll to see it.

@pec1985
Copy link
Owner

pec1985 commented Sep 16, 2011

I will test it over the weekend and do the best I can to fix it. For future bugs like this one, please provide a sample code so that I can just copy, paste, and run. Thanks.

@sindresorhus
Copy link
Contributor Author

Testcase

You'll notice that the last "received" message is not scrolled into view.

@pec1985
Copy link
Owner

pec1985 commented Sep 20, 2011

Not sure how to fix it. For now, set the animation to false until all the messages are shown, then set the animation back to true.

I will look into it.

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

No branches or pull requests

2 participants