I have a very simple piece of HTML code:
<nav id="navStatus" onclick="NavStatus_OnClick()">
and corresponding javascript
function NavStatus_OnClick() {
// do stuff
}
this works fine on my Chrome on my laptop, but the event is not fired on a Raspberry Pi 7″ touch screen. I also tried with $("#navStatus").on("click", (e) => {});
but that doesn’t work.
Onclick handlers on an <img>
tag do work on the touch screen though. Is it something I missed, or are <nav>
tags not clickable in touch?