mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
web: Removed :active pseudo-class Safari workaround
This commit is contained in:
parent
39c13d31f3
commit
93d60ac932
@ -44,12 +44,6 @@ function __WindowManager() {
|
||||
var __catch_menu_esc = false;
|
||||
|
||||
var __init__ = function() {
|
||||
for (let el of $$$("button")) {
|
||||
// XXX: Workaround for iOS Safari:
|
||||
// https://stackoverflow.com/questions/3885018/active-pseudo-class-doesnt-work-in-mobile-safari
|
||||
el.ontouchstart = function() {};
|
||||
}
|
||||
|
||||
for (let el of $$("menu-button")) {
|
||||
el.parentElement.querySelector(".menu").setAttribute("tabindex", "-1");
|
||||
tools.el.setOnDown(el, () => __toggleMenu(el));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user