fix: resolve type mismatch between Mouse and Touch events in ButtonAction
All checks were successful
Build MIPS Binary / build (push) Successful in 1m51s

This commit is contained in:
spinline
2026-02-13 13:44:15 +03:00
parent e45ec46793
commit a12265573c

View File

@@ -12,6 +12,7 @@ pub fn ButtonAction(
) -> impl IntoView {
let is_holding = RwSignal::new(false);
// Explicitly define handlers to avoid type mismatches between Mouse and Touch events
let on_down = move |_| is_holding.set(true);
let on_up = move |_| is_holding.set(false);
@@ -50,7 +51,7 @@ pub fn ButtonAction(
on:mouseup=on_up
on:mouseleave=on_up
on:touchstart=move |_| is_holding.set(true)
on:touchend=on_up
on:touchend=move |_| is_holding.set(false)
>
// Progress Overlay
<Show when=move || is_holding.get()>