Skip to content

Webview: allow to change zoom factor for better accessibility #24

@rucub100

Description

@rucub100

import { getCurrentWebview } from "@tauri-apps/api/webview";
await getCurrentWebview().setZoom(1.5);

https://tauri.app/reference/javascript/api/namespacewebview/#setzoom

you also need to add "core:webview:allow-set-webview-zoom" permission to the capabilities

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions