min icon indicating copy to clipboard operation
min copied to clipboard

Pinch to zoom not working on Wayland / `--ozone-platform-hint=auto` w/ fractional scaling causes blurry image

Open marcdus opened this issue 1 year ago • 2 comments

  • Min Version: Min: 1.32.0 Chromium: 122.0.6261.156

  • Operating system: Ubuntu 24.04 LTS w/ Wayland windowing and 200% Gnome scaling

Expected Behavior

Trackpad pinch to zoom should work in Min with the line implemented in PR #2063 as far as I understood.

It did not work initially in my case, but using min --ozone-platform-hint=auto I got it to work partly.

Actual Behavior

With the ozone flag set, pinch to zoom works, but the whole browser image is blurry. Setting the resolution scaling of gnome desktop to 100% fixes the issue. The issue occurs no matter in which order you start Min / change resolution scaling.

Screenshot from 2024-05-06 17-45-15 Notice sharp gnome UI elements, blurry Min browser. Using 200% resolution scale.

To Reproduce

  • Start Min and try trackpad pinch to zoom on Wayland - does not work without the flag
  • Using Wayland and resolution scaling !=100% start Min with min --ozone-platform-hint=auto and observe blurry image

(Pinch to zoom also didn't work for me on Ubuntu 22.04, but I did not try the ozone flag there.)

marcdus avatar May 06 '24 15:05 marcdus

I found this comment mentioning a similar issue in electron VSCode. The recommended flag fixes the blurryness and pinch to zoom still works:

min --ozone-platform-hint=auto --disable-features=WaylandFractionalScaleV1

Please let me know whether this is solely an upstream issue (where? Electron, chromium, wayland, gnome?) or if Min should detect the used platform and change its behavior. I'm not knowledgeable enough to judge

marcdus avatar May 07 '24 14:05 marcdus

There was a related discussion recently in this issue: #2429

Chromium leaves this disabled by default, which Electron (and therefore us) inherit. We could override their decision and enable the flag, but I'd like to understand why they chose to disable it first (I expect there are more bugs like what you've found).

PalmerAL avatar May 08 '24 15:05 PalmerAL