Skip to content

Commit

Permalink
fix: Don't disable mouse hover UI functionality on touch screens (#5433)
Browse files Browse the repository at this point in the history
Because devices can have both touch and mouse input.
  • Loading branch information
larseggert committed Mar 28, 2023
1 parent 7c890ea commit 53a90a3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ietf/static/js/ietf.js
Expand Up @@ -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);
}
});
});
Expand Down

0 comments on commit 53a90a3

Please sign in to comment.