Browse Source

Make links in menu work on iOS

pull/899/head
Kitaiti Makoto 3 months ago
parent
commit
ed22c6b103
1 changed files with 12 additions and 1 deletions
  1. +12
    -1
      plume-front/src/lib.rs

+ 12
- 1
plume-front/src/lib.rs View File

@@ -114,7 +114,18 @@ fn menu() {
.unwrap();
show_menu.forget();

let close_menu = Closure::wrap(Box::new(|_: TouchEvent| {
let close_menu = Closure::wrap(Box::new(|evt: TouchEvent| {
if evt
.target()
.unwrap()
.dyn_ref::<Element>()
.unwrap()
.closest("a")
.unwrap()
.is_some()
{
return;
}
self::document()
.get_element_by_id("menu")
.map(|menu| {


Loading…
Cancel
Save