threema-ch / threema-web

The Threema Web application.
GNU Affero General Public License v3.0
988 stars 106 forks source link

Scrolling up sometimes fails #18

Closed dbrgn closed 4 years ago

dbrgn commented 7 years ago

E.g. scrolling up does not work with the "home" key if conversation is scrolled all the way to the bottom.

I also heard reports that scrolling fails with a touchpad.

Most probably has to do with the angularjs-scroll-glue library.

patrick-tee commented 7 years ago

Confirmed: Touchpad scrolling up using a Samsung Galaxy Tab S2 jumps back to the end after half a second, no matter if the scrolling gesture is still in progress or if the finger is up again.

lgrahl commented 7 years ago

I'm also experiencing this on FF 55 (jumps back to the bottom if not scrolling further than a certain amount).

mist commented 6 years ago

This is really anoying, I'm using FF57 on Debian and current FF on Android and cannot see anything but the last few messages, because the site scrolls to the last message after less than a second. At least on the desktop I can click into the messages and scroll with the cursor buttons, though I can'T with wheel. Please fix this issue!

rugk commented 6 years ago

What do you mean with desktop? The chat overview where you can select the chat/contact?

mist commented 6 years ago

On my Desktop Computer. While on my Tablet Computer (Firefox@Android) I cannot use my cursor buttons because it hase none.

studersi commented 6 years ago

+1

I'm running Threema Web 1.8.2 on Linux Mint 18 in Firefox 58.0.2 (64-bit). It happens when I'm scrolling with my notebook's tablet as well as with my Logitech mouse.

dbrgn commented 6 years ago

@studersi does the problem also occur with Chromium? Maybe it is triggered by some smooth scrolling settings in Firefox...

studersi commented 6 years ago

@dbrgn You're right, it does seem to be related to smooth scrolling to an extent.

I don't have Chromium installed but I do have Google Chrome [Version 64.0.3282.186 (Official Build) (64-bit)]. It scrolls just fine on Chrome.

In Firefox, smooth scrolling is disabled. When I enable smooth scrolling, the problem disappears almost completely. It's still noticeable sometimes but it just seems to stutter before scrolling as planned. Very rarely, it stays at the bottom of the conversation.

mist commented 6 years ago

I can kind of confirm that It has to do with smooth scrolling. Got a new machine with more power and without smooth scrolling set the problem kind of is there, although just annoying but not rendering the page useless. When I enable smooth scrolling the problem is gone. On the Android tablet I see no way to enable smooth scrolling, so the problem persists.

dbrgn commented 6 years ago

If the last message in the conversation is an animgif that is playing, then scrolling up does not work in Firefox 58.

heckenmann commented 6 years ago

Changing line 39 in messenger.conversation.html to <div id="conversation-chat" scroll-glue="!ctrl.showScrollJump" in-view-container ng-show="!ctrl.locked"> seems to make the behavior a bit better.

sebastianw commented 6 years ago

On my Macbook scrolling with the touchpad also fails. Workaround: use the cursor key to scroll up a bit first, after that scrolling works with the touchpad as long as I don't scroll down to the end of the chat again. When I scroll back down to the end of the chat the problem occurs again.

rugk commented 6 years ago

Which browser is that?

sebastianw commented 6 years ago

Current Firefox on Mac

dbrgn commented 6 years ago

@heckenmann thanks, that improves things slightly :slightly_smiling_face: there's probably some issue with the underlying library that we need to debug.

ventilator commented 6 years ago

Scrolling up in a chat especially fails, if a) the phone is on LTE (no Wifi) and b) there is an image in the chat which is still loading. Loading takes about one minute, during that time, scrolling up is not possible (OS: Windows 10, Browser: Firefox). Kind of annoying, since I cannot read chat messages.

Workaround: Setting Webbrowserscaling to 50%, so I can read messages further up while images are loading.

dbrgn commented 6 years ago

@ventilator note that you can always grab the scrollbar with the mouse to scroll.

ventilator commented 6 years ago

@dbrgn This won't help, grabbing and holding the scrollbar lets the interface jump up to the scroll bar position and down to the end of the thread with a frequency so fast, that reading is not possible

dbrgn commented 6 years ago

@ventilator hm, that shouldn't be the case. Are you a beta user, or on version 1.8.2?

ventilator commented 6 years ago

1.8.2. But I tried, but cannot reproduce the effect at another PC at home, which has a faster internet connection. I will try to make a screencast of the effect once I have access again to the laptop at work which has a somewhat slower or at least filtered, firewalled corporate internet connection.

mist commented 6 years ago

@dbrgn I can also affirm that grabbing the scrollbar with the mouse did never work whenever I encountered this problem.

rugk commented 6 years ago

I could always grab the scrollbar with the mouse and move it "hard enough" to the top. It's a bit like taming donkeys, but it works.

rugk commented 6 years ago

Some more insights (2.0.0-beta.7):

in short: it all seems like a demotivation campaign by annoying the user to stick to the recent stuff and not scroll back… :stuck_out_tongue_winking_eye:

Fedora 28, Firefox 61

ovalseven8 commented 5 years ago

Have this problem with a specific conversation right now (Threema Web 2.1.7; Firefox 66.0.1). Cannot scroll up. No images etc. to load in this conversation, just text. Actually, it's just a single message that does not fit on screen, so that the scroll bar is displayed.

lgrahl commented 5 years ago

Actually, it's just a single message that does not fit on screen, so that the scroll bar is displayed.

That's a different issue then. Can you open a new one for it? Please, add a screenshot if you do.

dbrgn commented 5 years ago

I don't think it's a different issue.

And I cannot reproduce it, neither in Firefox nor in Chrome.

lgrahl commented 5 years ago

I don't think it's a different issue.

If there's a message filling the whole screen?

ovalseven8 commented 5 years ago

Example:

Cannot scroll up: Screenshot_2019-03-26 Threema Web

Here's the single message that is above: Screenshot_2019-03-26 Threema Web(1)

dbrgn commented 5 years ago

Ah, from what you wrote...

Actually, it's just a single message that does not fit on screen, so that the scroll bar is displayed.

...I assumed that the entire chat only contains a single multi-line message that is larger than what fits on the screen.

Thanks for the additional datapoint, but I see no indication that it's a different issue than what was discussed previously.