fix: Resolve build errors for mobile long-press (missing deps, type mismatch)
This commit is contained in:
@@ -32,7 +32,11 @@ web-sys = { version = "0.3", features = [
|
|||||||
"Element",
|
"Element",
|
||||||
"DomTokenList",
|
"DomTokenList",
|
||||||
"CssStyleDeclaration",
|
"CssStyleDeclaration",
|
||||||
"Storage"
|
"Storage",
|
||||||
|
"TouchEvent",
|
||||||
|
"TouchList",
|
||||||
|
"Touch",
|
||||||
|
"Navigator"
|
||||||
] }
|
] }
|
||||||
shared = { path = "../shared" }
|
shared = { path = "../shared" }
|
||||||
tailwind_fuse = "0.3.2"
|
tailwind_fuse = "0.3.2"
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
use leptos::*;
|
use leptos::*;
|
||||||
|
use wasm_bindgen::closure::Closure;
|
||||||
|
use wasm_bindgen::JsCast;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -297,9 +299,8 @@ pub fn TorrentTable() -> impl IntoView {
|
|||||||
set_menu_visible.set(true);
|
set_menu_visible.set(true);
|
||||||
|
|
||||||
// Haptic feedback if available
|
// Haptic feedback if available
|
||||||
if let Ok(navigator) = window().navigator() {
|
let navigator = window().navigator();
|
||||||
let _ = navigator.vibrate_with_duration(50);
|
let _ = navigator.vibrate_with_duration(50);
|
||||||
}
|
|
||||||
}) as Box<dyn Fn()>);
|
}) as Box<dyn Fn()>);
|
||||||
|
|
||||||
let id = window()
|
let id = window()
|
||||||
|
|||||||
Reference in New Issue
Block a user