feat(desktop): add pinch zoom setting (#28632)

This commit is contained in:
Brendan Allan
2026-05-21 18:44:30 +08:00
committed by GitHub
parent 2697cb8001
commit 2caac055ef
11 changed files with 244 additions and 35 deletions

View File

@@ -93,6 +93,12 @@ export type Platform = {
/** Webview zoom level (desktop only) */
webviewZoom?: Accessor<number>
/** Get whether native pinch/Ctrl-scroll zoom gestures are enabled (desktop only) */
getPinchZoomEnabled?(): Promise<boolean> | boolean
/** Allow native pinch/Ctrl-scroll zoom gestures (desktop only) */
setPinchZoomEnabled?(enabled: boolean): Promise<void> | void
/** Run a desktop-only menu action from the app chrome */
runDesktopMenuAction?(action: DesktopMenuAction): Promise<void> | void