zhukov / webogram

Telegram web application, GPL v3
https://web.telegram.org
GNU General Public License v3.0
7.95k stars 2.36k forks source link

[bug] Conversations not scrolling down #832

Open danielquijada opened 9 years ago

danielquijada commented 9 years ago

When I receive a message in any chat it doesn't scroll down (it does to my gf in her laptop, so I assume this is a problem with my setup or something).

If you need any extra info to troubleshoot this, please let me know. It's pretty frustrating that I have to talk or take the mouse to see what someone told me.

zhukov commented 9 years ago

What is the problem browser, OS ?

danielquijada commented 9 years ago

I use Google Chrome (just tested in firefox, seems to work fine). OS is Windows 8.1

zhukov commented 9 years ago

Do you use zoom? Can you check javascript console for some errors? Any plugins / extensions installed?

danielquijada commented 9 years ago

I usually use 125% zoom on my small screen, but just tested it with 100% and the problem persists. I have a lot of plug-ins, but just tested on incognito mode (no plug-ins or anything that could interfere) and the problem persists too. Also, I noticed that the problem doesn't always occur, in about 30% of the times it seems to work fine with the first message only (after that, always need to scroll down to see others). No console errors, the log (in case I missed something): note: I refreshed the page in order to reproduce the bug and avoid "noise" notifications

Document was loaded from Application Cache with manifest https://web.telegram.org/webogram.appcache
(index):1 Application Cache Checking event
(index):1 Application Cache NoUpdate event
app.js:16 [0.174] Api call contacts.resolveUsername
app.js:16 [0.182] Api call updates.getState
app.js:16 [0.320] Api call messages.getDialogs
app.js:15 [0.658] NaCl ready
app.js:16 [0.753] Rpc response updates.state
app.js:16 [0.754] Rpc response userForeign
app.js:16 [0.754] Rpc response messages.dialogsSlice
app.js:16 [0.779] Api call messages.getDialogs
app.js:16 [0.950] Api call messages.getHistory
app.js:16 [1.105] Rpc response messages.dialogsSlice
app.js:16 [1.191] Rpc response messages.messagesSlice
app.js:16 [2.870] Api call account.updateStatus
app.js:16 [2.942] Api call messages.sendMessage
app.js:16 [2.973] Rpc response false
app.js:16 [3.062] Rpc response messages.sentMessage
app.js:16 [3.093] Api call messages.readHistory
app.js:16 [3.178] Rpc response messages.affectedHistory
app.js:16 [9.652] Api call messages.getFullChat
app.js:16 [9.755] Rpc response messages.chatFull
app.js:16 [10.980] Api call account.updateStatus
app.js:16 [11.067] Rpc response true
zhukov commented 9 years ago

The log is OK, no errors. Could you please record a video of the bug happening?

danielquijada commented 9 years ago

Ok, the video is awful, the program I downloaded cut part of the screen.. still I think you can see what happens.

I change between chats a few times and reloaded the page while my gf helped me here, but you can (barely) see it doesn't scroll down, I even manually scroll to the bottom to see if it sticks but it doesn't.

http://youtu.be/oif30jcb-CY

PS: just uploaded the video, might take a few mins to process by yt

zhukov commented 9 years ago

Oh I see. You seem to be IDLE (AFK) as seen by the app. We don't change scroll so you'll see missed history from the beginning, when you return online. Can you ask smb if you appear as 'last seen just now' (not online) when this happens?

danielquijada commented 9 years ago

Tested it, appear as 'online'. Maybe it's not the bug or the bug includes the 'online' but that would be weird..

What I tought is that it could be a bug with the feature of "don't scroll down if you are reading something older" (you know what I mean? when you scroll up to read and don't want to be dragged down for a new message).

Of course, it's your project, you will know it better, was just an idea; the only I could think of

vphantom commented 6 years ago

Telegram web used to work as expected for me for several years, but in the last few months with Chrome 65+ for Linux, no zoom, online, chats never scroll anymore on new messages. It doesn't matter if I'm in another tab, or if I'm in the tab, if I'm typing or if I'm not doing anything at all, I have to manually scroll to see new messages. Very annoying as it breaks the flow of conversations completely.

In the past, chats would scroll as messages came in, even when I was typing, which led for the flow people would expect (i.e. on Discord or any other chat-like UI).

Xfox1 commented 5 years ago

Same happen to me using Telegram inside Rambox. The problem seems to happen just when others write to me and not the other way.