fix: Don't disable mouse hover UI functionality on touch screens (#5433)

Because devices can have both touch and mouse input.
This commit is contained in:
Lars Eggert 2023-03-28 12:16:04 +09:00 committed by GitHub
parent 7c890ea69e
commit 53a90a38ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -141,10 +141,8 @@ $(document)
attachTo.append(menu.join(""));
}
if (!("ontouchstart" in document.documentElement)) {
$("ul.nav li.dropdown, ul.nav li.dropend")
.on("mouseenter mouseleave", dropdown_hover);
}
$("ul.nav li.dropdown, ul.nav li.dropend")
.on("mouseenter mouseleave", dropdown_hover);
}
});
});