From 4bf9ffa12b7c403641ee42f00afd30210c37bbe2 Mon Sep 17 00:00:00 2001 From: Tw93 Date: Fri, 25 Nov 2022 14:34:39 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E6=9B=B4=E6=96=B0=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E5=A4=8D=E5=8E=9F=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-tauri/src/main.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index d8f8eca..5664604 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -164,23 +164,23 @@ fn main() -> wry::Result<()> { #[cfg(target_os = "macos")] let webview = WebViewBuilder::new(window)? .with_user_agent(&user_agent_string) - // .with_accept_first_mouse(true) + .with_accept_first_mouse(true) .with_url(&url.to_string())? .with_devtools(cfg!(feature = "devtools")) .with_initialization_script(include_str!("pake.js")) .with_ipc_handler(handler) - // .with_back_forward_navigation_gestures(true) + .with_back_forward_navigation_gestures(true) .build()?; #[cfg(target_os = "windows")] let webview = WebViewBuilder::new(window)? .with_user_agent(&user_agent_string) - // .with_accept_first_mouse(true) + .with_accept_first_mouse(true) .with_url(&url.to_string())? .with_devtools(cfg!(feature = "devtools")) .with_initialization_script(include_str!("pake.js")) .with_ipc_handler(handler) - // .with_back_forward_navigation_gestures(true) + .with_back_forward_navigation_gestures(true) .build()?; // 自定义cookie文件夹,仅用于Linux // Custom Cookie folder, only for Linux @@ -197,13 +197,13 @@ fn main() -> wry::Result<()> { #[cfg(target_os = "linux")] let webview = WebViewBuilder::new(window)? .with_user_agent(&user_agent_string) - // .with_accept_first_mouse(true) + .with_accept_first_mouse(true) .with_url(&url.to_string())? .with_devtools(cfg!(feature = "devtools")) .with_initialization_script(include_str!("pake.js")) .with_ipc_handler(handler) .with_web_context(&mut web_content) - // .with_back_forward_navigation_gestures(true) + .with_back_forward_navigation_gestures(true) .build()?; #[cfg(feature = "devtools")]