fix: Try to fix touch drag

#456
This commit is contained in:
MystiPanda 2024-03-16 10:54:19 +08:00
parent f2f75d4015
commit 3edeaa7038

View File

@ -139,10 +139,7 @@ pub fn create_window(app_handle: &AppHandle) {
_ => { _ => {
#[cfg(target_os = "windows")] #[cfg(target_os = "windows")]
{ {
builder = builder builder = builder.inner_size(800.0, 636.0).center();
.additional_browser_args("--enable-features=msWebView2EnableDraggableRegions")
.inner_size(800.0, 636.0)
.center();
} }
#[cfg(target_os = "macos")] #[cfg(target_os = "macos")]
@ -159,6 +156,7 @@ pub fn create_window(app_handle: &AppHandle) {
#[cfg(target_os = "windows")] #[cfg(target_os = "windows")]
let window = builder let window = builder
.decorations(false) .decorations(false)
.additional_browser_args("--enable-features=msWebView2EnableDraggableRegions --disable-features=OverscrollHistoryNavigation,msExperimentalScrolling")
.transparent(true) .transparent(true)
.visible(false) .visible(false)
.build(); .build();