git.s-ol.nu hw/0x33.board/firmware / c609e66
simulator: remove context menu, outlines, etc in multitouch chrome s-ol 20 days ago
1 changed file(s) with 5 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
208208 width: 100%;
209209 height: calc(100vh - 4rem);
210210 touch-action: none;
211 user-select: none;
212 -webkit-tap-highlight-color: transparent;
211213 }
212214 </style>
213215 </head>
226228
227229 const blockTouch = (e) => {
228230 e.preventDefault();
231 e.stopPropagation();
229232 };
230233 svg.ontouchstart = blockTouch;
234 svg.ontouchend = blockTouch;
231235 svg.ontouchcancel = blockTouch;
236 svg.oncontextmenu = blockTouch;
232237
233238 let res = document.evaluate(".//*[contains(@class,'led')]", svg);
234239 let node = res.iterateNext();