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