Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
marcdus opened this issue May 6, 2024 · 2 comments
Labels

Comments

@marcdus
Copy link

marcdus commented May 6, 2024

  • 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 marcdus added the bug label May 6, 2024
@marcdus
Copy link
Author

marcdus commented May 7, 2024

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

@PalmerAL
Copy link
Collaborator

PalmerAL commented May 8, 2024

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants