sublimehq / sublime_merge

Issue tracker for Sublime Merge
https://www.sublimemerge.com
276 stars 14 forks source link

scroll wheel works poorly on Linux #929

Open wrigleyster opened 4 years ago

wrigleyster commented 4 years ago

Version info

Description

Ever since build 2020 scrolling doesn't work properly.. (build 2020 also had the problem) it is gittery, and sometimes it can take up to 5 minutes from you scroll till the window moves. Using the scroll bars work fine, but scrolling using scroll wheel or trackpoint scrolling is broken.

Steps to reproduce

Steps to reproduce the behavior:

  1. Open repository with changes in it (the problem seems to be worse with more changes)
  2. use the scroll wheel, or track point to scroll
  3. watch as scrolling happens very gittery/slowly (not in slow motion, but in jumps with pauses as though it takes a long time to process the scroll action)

Expected behavior

responsive scrolling. you scroll, the window moves. either smooth or linebased scrolling. not an arbitrary number of lines with arbitrary waits inbetween

EDIT: video of issue: https://youtu.be/V3EfDpaoWKI

BenjaminSchaaf commented 4 years ago

Are you using X11 or Wayland? If you're using Wayland could you try launching Sublime Merge from the command line using GDK_BACKEND=wayland smerge?

wrigleyster commented 4 years ago

Hi Benjamin, Thank you for looking into this :) I’m using X11. Cheers, Jakob

Sent from my phone

Den 28. sep. 2020 kl. 07.01 skrev Benjamin Schaaf notifications@github.com:

 Are you using X11 or Wayland? If you're using Wayland could you try launching Sublime Merge from the command line using GDK_BACKEND=wayland smerge?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

BenjaminSchaaf commented 4 years ago

Do you have hardware acceleration enabled? What hardware are you using, GPU/GPU & mouse? Are you seeing similar behaviour in apps like gedit?

wrigleyster commented 4 years ago

I didn't have hardware acceleration enabled, however enabling it leaves scrolling about the same, though it does cause heavy flickering. I am not experiencing the issue in gedit. Neither am I experiencing the issue in other applications I'm using, however, whether any of them are particularly like gedit, I do not know.

I'm on a Lenovo Thinkpad T480 with Intel graphics, I experience the issue regardless whether I scroll using the built-in TrackPoint, scroll on built-in TrackPad, scroll using my external Corsair Harpoon RGB Mouse or my Kensington Expert Mouse (trackball). I use the libinput X11-driver with all of them.

BenjaminSchaaf commented 4 years ago

That sounds very odd. Sublime Merge uses GTK to get scroll events and behaves in much the same way as other apps. The T480 has pretty standard hardware with plenty of power for rendering the UI and others like myself don't have issues on Ubuntu 20.04. My guess would be there's some other issue going on. A recording of the issue might help narrow things down and you could try a stock ubuntu install from a live boot usb.

wrigleyster commented 4 years ago

I'll see if I can't get a recording of it.. but probably won't have time before the weekend.. till then..

wrigleyster commented 3 years ago

I'm afraid I've been having some issues finding a non-buggy screen recorder.. I'll keep trying, though..

One thing though, scrolling works just fine in the changelog window..

wrigleyster commented 3 years ago

I finally managed to find some working screen recording software, so here's a video of the issue https://youtu.be/V3EfDpaoWKI

I've updated the build info in the description above, as I have since upgraded to build 2039.. the video is made with that version

wrigleyster commented 2 years ago

This issue has improved significantly with the recent performance improvements.. When scrolling through the changes of a large merge with many files, it still stutters quite a bit, but at least the ui doesn't freeze anymore.. and for moderately sized and small commits, scrolling works well or only stutters a little

BenjaminSchaaf commented 2 years ago

Can you give an example of a repository with changes where this happens? Does it only happen if there are changes?