steam-for-linux icon indicating copy to clipboard operation
steam-for-linux copied to clipboard

No smooth scrolling

Open KotoWhiskas opened this issue 4 years ago • 15 comments

Your system information

  • Steam client version (build number or date): May 19 2021 at 01:54:04
  • Distribution (e.g. Ubuntu): Pop os 20.04 (based on Ubutnu 20.04 LTS)
  • Opted into Steam client beta?: [Yes/No] No
  • Have you checked for system updates?: [Yes/No] Yes

Please describe your issue in as much detail as possible:

Smooth scrolling doesn't work even when "Enable smooth scrolling in web views" and "Enable gpu acceleration" options are enabled, although on the same hardware it works on windows. These options in settings are simply ignored. The features are supported in chromium on linux.

Steps for reproducing this issue:

  1. Open Steam
  2. Scroll

KotoWhiskas avatar Jun 07 '21 11:06 KotoWhiskas

Hello @KotoWhiskas, these options should work in general, and Steam hands off the --disable-smooth-scrolling, --disable-gpu-compositing, and --disable-gpu CLI options to steamwebhelper when they are disabled, but libcef may be disabling something for its own reasons.

While it's not considered a normal way to troubleshoot, you should be able to completely close Steam, then run steam -console in a terminal, login and go to the console tab, and type open about:gpu to get the same graphics diagnostics information as upstream chromium. Please click the Copy Report to Clipboard button and share it in a gist. Also, please copy your system information from Steam (Steam -> Help -> System Information) and put it in a gist, then include links to the gists in this issue report.

kisak-valve avatar Jun 07 '21 14:06 kisak-valve

Hello, thanks for the reply

Info from about:gpu page - https://gist.github.com/KotoWhiskas/0a6a02c234fbaf9e53326c158f7297da System info - https://gist.github.com/KotoWhiskas/d79568a5c89b5005a5b616dd0e3a27b7 Output from "steam -console" command - https://gist.github.com/KotoWhiskas/07a5c7984aaf8387255b3fe0fcc33713

KotoWhiskas avatar Jun 07 '21 19:06 KotoWhiskas

@kisak-valve

KotoWhiskas avatar Jun 07 '21 19:06 KotoWhiskas

Thanks, I think that's telling us that GPU accelerated web views is working as intended. Let's use this issue report to focus on the Steam client's smooth scrolling behavior.

kisak-valve avatar Jun 07 '21 19:06 kisak-valve

@kisak-valve, In Windows, on the same hardware, scrolling is smoother (when i pull scroll bar), because hardware accelerated rasterization is off on linux, so it's hardware accelerated, but partially. Here's gist with about:gpu from windows (the same computer) - https://gist.github.com/KotoWhiskas/a10f5b5a5dab20c47bdd718a3f379862

KotoWhiskas avatar Jun 07 '21 20:06 KotoWhiskas

I don't think smooth scrolling on linux works with any hardware/software configuration.

Rosentti avatar Aug 02 '21 22:08 Rosentti

I've been seeing this issue as well on my Gnome Arch install. Smooth scrolling works fine in every other application, including Chromium-based browsers. Only Steam seems to not have smooth scrolling in all views.

urbenlegend avatar Sep 17 '21 16:09 urbenlegend

By the way, smooth scroll works if I use keyboard arrows, but scroll is laggy compared to windows because on linux it has no gpu rasterization enabled

KotoWhiskas avatar Sep 17 '21 21:09 KotoWhiskas

I feel like this should be fairly high priority considering more and more of the client is being refactored as webpages.

Rosentti avatar Sep 17 '21 21:09 Rosentti

I think the problem lies within the version of cef being so old ANGLE is not supported. Info from a freshly built cef: https://gist.github.com/20PercentRendered/6bb6323b035dab801c5bdde4942d1465 Info from steam's about:gpu: https://gist.github.com/20PercentRendered/31f6bde0f7153a8904b96a3e1d5aff6b

Rosentti avatar Oct 10 '21 10:10 Rosentti

This issue is still present on all Linux distros (Arch, Fedora, Debian, Ubuntu). I hope this gets fixed because on Windows smooth scrolling makes using the client much nicer. On Linux on the other hand it feels really bad in my opinion.

litLizard69 avatar Jul 15 '22 12:07 litLizard69

I feel like this should be fairly high priority considering more and more of the client is being refactored as webpages.

Definitely. Smooth-Scrolling makes using the client much better.

litLizard69 avatar Jul 16 '22 11:07 litLizard69

Would it be possible to open-source steamwebhelper so the community can fix related issues?

Rosentti avatar Jul 16 '22 12:07 Rosentti

Would it be possible to open-source steamwebhelper so the community can fix related issues?

That would be a good idea because Valve doesn't seem to have this issue at a high priority right now.

litLizard69 avatar Jul 16 '22 13:07 litLizard69

This problem is still present and needs fixing!

litLizard69 avatar Aug 01 '22 20:08 litLizard69

This issue is still present on the newest version of the Steam-Client for Linux and should receive a fix.

litLizard69 avatar Aug 18 '22 16:08 litLizard69

This issue is still present on the newest version of the Steam-Client for Linux and should receive a fix.

I don’t think spamming will help. They’ll end up just locking the issue. There were a 10 year old issues with hundreds of “thumb up” reactions and only some of them they actually fixed recently.

KotoWhiskas avatar Aug 19 '22 09:08 KotoWhiskas

This issue is still present on the newest version of the Steam-Client for Linux and should receive a fix.

I don’t think spamming will help. They’ll end up just locking the issue. There were a 10 year old issues with hundreds of “thumb up” reactions and only some of them they actually fixed recently.

Oh, I'm sorry. I'll stop spamming then. Weird that their Steam Client for Linux is not made with the care like on Windows even though they think Linux gaming is the future etc.

litLizard69 avatar Aug 19 '22 09:08 litLizard69

If you have CEF debugging turned on in Steam, you can open Chrome's about:inspect and click on the steam library. Scrolling the library from Chrome's preview window scrolls smoothly, the movement even being mirrored in the Steam client itself. Steamwebhelper seems to have some sort of input issues. Is steamwebhelper calculating scrolling wrong?

And way back when the Steam Deck Recovery image was first posted, I tested the desktop steam client with the steampal branch and -steamdeck launch arg. Smooth scrolling worked. This could have been because of the forced scale factor with -steamdeck.

Rosentti avatar Aug 21 '22 18:08 Rosentti

If you have CEF debugging turned on in Steam, you can open Chrome's about:inspect and click on the steam library. Scrolling the library from Chrome's preview window scrolls smoothly, the movement even being mirrored in the Steam client itself. Steamwebhelper seems to have some sort of input issues. Is steamwebhelper calculating scrolling wrong?

And way back when the Steam Deck Recovery image was first posted, I tested the desktop steam client with the steampal branch and -steamdeck launch arg. Smooth scrolling worked. This could have been because of the forced scale factor with -steamdeck.

How do you enable CEF debugging in Steam (Flatpak)?

litLizard69 avatar Aug 21 '22 18:08 litLizard69

To enable remote debugging: touch /home/$(whoami)/.var/app/com.valvesoftware.Steam/.local/share/Steam/.cef-enable-remote-debugging To disable remote debugging: rm /home/$(whoami)/.var/app/com.valvesoftware.Steam/.local/share/Steam/.cef-enable-remote-debugging After you're done debugging make sure to disable the debug feature. Then, in chrome/chromium you go to about:inspect and add 127.0.0.1:8080 into target discovery. And now you can click open any of the pages.

Rosentti avatar Aug 21 '22 19:08 Rosentti

To enable remote debugging: touch /home/$(whoami)/.var/app/com.valvesoftware.Steam/.local/share/Steam/.cef-enable-remote-debugging To disable remote debugging: rm /home/$(whoami)/.var/app/com.valvesoftware.Steam/.local/share/Steam/.cef-enable-remote-debugging After you're done debugging make sure to disable the debug feature. Then, in chrome/chromium you go to about:inspect and add 127.0.0.1:8080 into target discovery. And now you can click open any of the pages.

Ah, got it. Yeah when scrolling through the chrome tab it is smoother, though not the smooth scrolling from windows. Hopefully Valve will fix that.

litLizard69 avatar Aug 21 '22 20:08 litLizard69

Scrolling in gamepadui is smooth.

Rosentti avatar Nov 13 '22 11:11 Rosentti

Per the feedback on #9219, please retest this issue.

kisak-valve avatar Feb 19 '23 21:02 kisak-valve

Works in library and friends ui. Does not work in store or other website webviews, like manually opening a page from the console with open https://google.com. Works in webhelper popups like properties window's compatibility tool list. Haven't tested the overlay.

Rosentti avatar Feb 19 '23 22:02 Rosentti

Works in library and friends list, but not in the community tab, store tab, or profile tab for me. Everywhere except the library and friends list appears to have the old non-smooth scrolling. I can confirm that the ingame overlay also has non smooth scrolling everywhere, including the friends list and browser page.

Bill5122 avatar Feb 19 '23 22:02 Bill5122

Works in library and friends list, but not in the community tab, store tab, or profile tab for me. Everywhere except the library and friends list appears to have the old non-smooth scrolling. I can confirm that the ingame overlay also has non smooth scrolling everywhere, including the friends list and browser page.

Can confirm, also those areas that now have smooth mouse scrolling also receive proper touchpad scrolling events, so on touchpad scrolling became smooth

KotoWhiskas avatar Mar 12 '23 15:03 KotoWhiskas

And after the latest beta update it's gone again

KotoWhiskas avatar Mar 18 '23 14:03 KotoWhiskas

As of the latest steam beta, version 1682634349, smooth scrolling is now working everywhere in the regular steam client, as far as I can tell! However, smooth scrolling is not working in the in-game overlay still.

Bill5122 avatar Apr 28 '23 00:04 Bill5122

As of the latest steam beta, version 1682634349, smooth scrolling is now working everywhere in the regular steam client, as far as I can tell! However, smooth scrolling is not working in the in-game overlay still.

Smooth scrolling does work in those instances, but it is slow due to Chromium 85 (scrolling speed fixed in 109). The current workaround is to use IMWheel and configure it as such:

# ~/imwheelrc

# Speed up scrolling for pre-109 CEF
"^(Steam|Friends List.*)$"
    None, Up,   Button4, 2
    None, Down, Button5, 2

# Default (or else Ctrl+Scroll and such won't work in any application)
".*"
    Control_L, Up,   Control_L|Button4
    Control_L, Down, Control_L|Button5
    Control_R, Up,   Control_R|Button4
    Control_R, Down, Control_R|Button5
    Shift_L,   Up,   Shift_L|Button4
    Shift_L,   Down, Shift_L|Button5

...but considering this is a very dirty hack, I would much, MUCH prefer if something was done to fix it before 2024, when new Chromium versions will be pushed.

purplebar0 avatar Apr 28 '23 07:04 purplebar0