simulator: remove context menu, outlines, etc in multitouch chrome
s-ol
20 days ago
208 | 208 | width: 100%; |
209 | 209 | height: calc(100vh - 4rem); |
210 | 210 | touch-action: none; |
211 | user-select: none; | |
212 | -webkit-tap-highlight-color: transparent; | |
211 | 213 | } |
212 | 214 | </style> |
213 | 215 | </head> |
226 | 228 | |
227 | 229 | const blockTouch = (e) => { |
228 | 230 | e.preventDefault(); |
231 | e.stopPropagation(); | |
229 | 232 | }; |
230 | 233 | svg.ontouchstart = blockTouch; |
234 | svg.ontouchend = blockTouch; | |
231 | 235 | svg.ontouchcancel = blockTouch; |
236 | svg.oncontextmenu = blockTouch; | |
232 | 237 | |
233 | 238 | let res = document.evaluate(".//*[contains(@class,'led')]", svg); |
234 | 239 | let node = res.iterateNext(); |