+ if ("ontouchstart" in window) {
+ // TODO: I don't like this timeout, but $nextTick() fails,
+ // and in mounted() hook that fails too.
+ setTimeout(
+ () => {
+ // Disable tooltips on smartphones:
+ document.querySelectorAll("#aboveBoard .tooltip").forEach(elt => {
+ elt.classList.remove("tooltip");
+ });
+ },
+ 750
+ );
+ }