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

Zoom (change scaling factor) #388

Closed
shiMusa opened this issue Aug 19, 2021 · 6 comments · Fixed by #563
Closed

Zoom (change scaling factor) #388

shiMusa opened this issue Aug 19, 2021 · 6 comments · Fixed by #563

Comments

@shiMusa
Copy link

shiMusa commented Aug 19, 2021

Is your feature request related to a problem? Please describe.
Currently, it is not possible to zoom the webview (e.g. via Ctrl +, Ctrl -, or Ctrl mousewheel) as expected since every (to me) known browser supports it.

Describe the solution you'd like

  1. Automatically enable the typical shortcuts for zooming in and out
  2. typescript/javascript method for changing the scaling factor (zoom).

Describe alternatives you've considered
Currently, the only suggestion was to change the CSS property document.style.zoom.

@lemarier lemarier transferred this issue from tauri-apps/tauri Aug 20, 2021
@lemarier
Copy link
Member

Notes;

  • Let see if it require any change to the native webview settings.

  • Probably manageable with HTML meta tag

@CYBAI
Copy link

CYBAI commented Aug 29, 2021

Hi, I'm new to the tauri world though, this issue seems to be a good first one for me to explore!
May I work on this issue? Thank you! 🙏

@wusyong
Copy link
Member

wusyong commented Aug 29, 2021

I'm glad you are interested! Let's focus on providing method for each platform first. For example on macOS, this is the method you should implement:
https://developer.apple.com/documentation/webkit/wkwebview/1414996-setmagnification?language=objc

@keiya01
Copy link
Member

keiya01 commented Apr 26, 2022

This issue seems to be not touched for a long time...
Could I take on this issue?
Or is it work in progress?

@FabianLars
Copy link
Member

@keiya01 Feel free to work on it ❤️ As far as i know nobody is working on it.

@CYBAI
Copy link

CYBAI commented Apr 26, 2022

@keiya01 Please feel free to work on it 🙏

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

Successfully merging a pull request may close this issue.

6 participants