fix tap and holding buttons

This commit is contained in:
legop3
2025-11-22 20:18:01 -05:00
parent 86b4c9a18c
commit 988554dc5f
5 changed files with 14 additions and 5 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -11,8 +11,8 @@
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="apple-mobile-web-app-title" content="Multi Roomba Rover" />
<title>Multi Roomba Rover</title>
<script type="module" crossorigin src="/assets/index-12oFtg_b.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-CJ5HFm2O.css">
<script type="module" crossorigin src="/assets/index-TQSYlxub.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-CkWekXQn.css">
</head>
<body>
<div id="root"></div>
+1 -1
View File
@@ -282,7 +282,7 @@ function AuxMotorPanel({ orientation }) {
onPointerLeave={() => handleRelease(button)}
onPointerCancel={() => handleRelease(button)}
onContextMenu={(event) => event.preventDefault()}
className={`px-0.5 py-0.5 text-left text-sm font-semibold text-white transition ${button.color} hover:brightness-110 disabled:opacity-30 h-10`}
className={`px-0.5 py-0.5 text-left text-sm font-semibold text-white transition select-none no-touch-select ${button.color} hover:brightness-110 disabled:opacity-30 h-10`}
>
{button.label}
</button>
+9
View File
@@ -107,3 +107,12 @@ body {
}
}
}
@layer utilities {
.no-touch-select {
user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
-webkit-touch-callout: none;
}
}