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

feat: native window webview zoom rust-JS API #162

Merged
merged 3 commits into from
Dec 27, 2023
Merged

feat: native window webview zoom rust-JS API #162

merged 3 commits into from
Dec 27, 2023

Conversation

abose
Copy link
Member

@abose abose commented Dec 27, 2023

After this , call in windows, linux and mac platforms for webview zoom

     await __TAURI__.tauri.invoke("zoom_window", {scaleFactor:1.2});

Fixes: phcode-dev/phoenix#1168

reference: https://docs.rs/tauri/latest/tauri/window/struct.Window.html

Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@LordNayan
Copy link

with_webview is no longer available in tauri v2 beta. How can we do it in the beta version?

Tauri - v2.0.0 beta 3

@abose

@abose
Copy link
Member Author

abose commented Feb 20, 2024

Best would be to ask in tauri discord, they are very responsive there. For phcode, we wont be migrating to 2.0 till Tauri 2 is stable and a fewonths passed for user adoption.

@LordNayan
Copy link

Got it. Thanks for the reply Arun.

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

Successfully merging this pull request may close these issues.

Zoom in and out not working in tauri
2 participants