mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-17 10:00:46 -04:00
acrashing
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -11,7 +11,7 @@
|
|||||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
||||||
<meta name="apple-mobile-web-app-title" content="Roomba Rover" />
|
<meta name="apple-mobile-web-app-title" content="Roomba Rover" />
|
||||||
<title>Roomba Rover</title>
|
<title>Roomba Rover</title>
|
||||||
<script type="module" crossorigin src="/assets/index-CLAEEGOj.js"></script>
|
<script type="module" crossorigin src="/assets/index-ZJG0zdLU.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="/assets/index-LJWnKvT4.css">
|
<link rel="stylesheet" crossorigin href="/assets/index-LJWnKvT4.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -107,9 +107,11 @@ export default function HornControl({
|
|||||||
|
|
||||||
const handleWheel = (event) => {
|
const handleWheel = (event) => {
|
||||||
const target = event.target;
|
const target = event.target;
|
||||||
if (!(target instanceof HTMLInputElement)) return;
|
if (!(target instanceof Element)) return;
|
||||||
const index = Number(target.dataset.hornFreqIndex);
|
const input = target.closest('input[data-horn-freq-index]');
|
||||||
if (!Number.isInteger(index)) return;
|
if (!input) return;
|
||||||
|
const index = Number(input.dataset.hornFreqIndex);
|
||||||
|
if (!Number.isInteger(index) || index < 0 || index >= freqs.length) return;
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
const direction = event.deltaY < 0 ? 1 : -1;
|
const direction = event.deltaY < 0 ? 1 : -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user