r-c-f / waynergy

A synergy client for Wayland compositors
MIT License
394 stars 17 forks source link

Wheel scrolling does not work well with Firefox #101

Open mambasoft opened 2 months ago

mambasoft commented 2 months ago

Hello, I'm been using waynergy for a couple of months on the latest KDE Plasma 6 and everything works fine except for wheel scrolling with Firefox.

When I open a new browser page I can scroll towards the bottom but if I scroll back it will stop before reaching the top of the page. Other scrolling elements inside the page behave worse, i.e. they don't scroll at all or just for a short path.

Scrolling worked fine with the synergy client on X11 and since I use wayland desktop local touchpad scrolling works fine too. Other non-kde apps like Thunderbird and Chromium have no problems too with waynergy, so it seems a problem only with Firefox.

I tried tweaking some configuration options on Firefox with no result, I wonder if this is a common problem or not and I can provide debugging information if instructed to.

Thanks!

r-c-f commented 2 months ago

I did run into this in initial testing of Plasma 6, and I suspect it's because the virtual pointer doesn't send discrete events while an actual mouse does, but trying to reproduce it again has been fruitless. Which version of Firefox are you using?

mambasoft commented 2 months ago

I usually have the most recent Firefox release, 125.0.1 now. When I first installed waynergy I think I was using 123.0. P.S. the O.S. is openmamba Linux and I am the maintainer.

mambasoft commented 2 months ago

Problem seems resolved! I'm not sure about what fixed it as there have been many updates including Firefox 24.0.2 and Qt 6.7, but my guess is that the fix could be in 5bd33075416dbb0bf22ffb7a0629faff685468de which I integrated as a patch in waynergy just a few days ago. Is this possible?

r-c-f commented 2 months ago

I have no idea how this is even possible -- I've been digging through gtk3 stuff trying to figure out where this might be happening over the past few days to no avail -- but yeah, that seems to fix it somehow even though it's completely and totally unrelated. I should probably go ahead and make a release at this point, seeing as how that is useful functionality regardless of whether it fixes a weird firefox input bug.

r-c-f commented 2 months ago

Actually scratch that, it's even worse now, for some reason, on my end.

I'll see if I can find any hints, but I can't promise much; my computer is simply not up to the task of browser development.

mambasoft commented 2 months ago

Don't trust my guess on that commit too much, let me take some time to do a better check on which update fixed the problem. Have you tried Firefox 24.0.2? This update was my second guess :) I don't think it's related to Qt 6.7 update because I already made tests with no resolution in the past days. Today I also applied a patch to plasma-workspace but it seems unrelated. The only thing I can confirm is that in the last few hours something fixed it.

mambasoft commented 2 months ago

Well, after downgrading to waynergy as released in 0.0.16 I rebooted and the problem was back, updading again to the patched release Firefox scrolls perfectly. You may see the changes in the last package release here.

mambasoft commented 2 months ago

I don't know if this may be useful, but as you cite gtk3, I can tell that I also upgraded glib to 2.80 between yesterday and today.