I have dual-booted my windows 11 with Ubuntu 22.04 LTS. The problem is that I wasn't able to use pinch zoom gesture on browsers. I was on Firefox. And also the too fast scrolling.
I searched around and found that I had to put:
MOZ_ENABLE_WAYLAND=1
in the .profile file. Which I did, but it did not work.
Someone on reddit suggested me that it's:
export MOZ_ENABLE_WAYLAND=1
so I edited the line in .profile file. It doesn't work.
The reddit guy kept helping me by asking me outputs of certain commands and more, which are:
In Firefox's about:support:
What does 'Window Protocol' say: x11
What does 'MOZ_ENABLE_WAYLAND' say: 1 (True)
What does running echo $XDG_SESSION_TYPE
in terminal say: x11
So, it seems like Firefox is okay with using Wayland but the Ubuntu itself is using X11 and hence the problem is happening?
Tell me if anything else is needed.
P.S. : I was asked to change session from X11 or Wayland from the settings icon while logging into the system. But it seems I the settings icon does not work in my case because the system is not compatible with Wayland and nothing can be done. So, tell me if you know of any workarounds to get the zooming functionality in the browser. Thank You.
P.S. 2 : I later found out that the gear icon in the login screen never worked when clicked because I was tapping on my touchpad for it and it required hardware clicks and it worked. And I switched to KDE hence the solution marked as correct is for KDE plasma.