mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
fix: no user select for on canvas elements
This commit is contained in:
1 parent
a212d2142c
commit
170056cc55
2 files changed
+29
-4
No files matched your search
@@ -59,7 +59,13 @@ export function RotationInputs() {
|
||||
flex: 1,
|
||||
}}
|
||||
>
|
||||
<TextField.Slot>Yaw</TextField.Slot>
|
||||
<TextField.Slot
|
||||
style={{
|
||||
userSelect: 'none',
|
||||
}}
|
||||
>
|
||||
Yaw
|
||||
</TextField.Slot>
|
||||
<TextField.Input
|
||||
defaultValue={Math.round(physical.yaw * (180 / Math.PI))}
|
||||
onBlur={() => {
|
||||
@@ -87,7 +93,13 @@ export function RotationInputs() {
|
||||
ref={turretYawInput}
|
||||
style={{ textAlign: 'right' }}
|
||||
/>
|
||||
<TextField.Slot>°</TextField.Slot>
|
||||
<TextField.Slot
|
||||
style={{
|
||||
userSelect: 'none',
|
||||
}}
|
||||
>
|
||||
°
|
||||
</TextField.Slot>
|
||||
</TextField.Root>
|
||||
|
||||
<TextField.Root
|
||||
@@ -95,7 +107,13 @@ export function RotationInputs() {
|
||||
flex: 1,
|
||||
}}
|
||||
>
|
||||
<TextField.Slot>Pitch</TextField.Slot>
|
||||
<TextField.Slot
|
||||
style={{
|
||||
userSelect: 'none',
|
||||
}}
|
||||
>
|
||||
Pitch
|
||||
</TextField.Slot>
|
||||
<TextField.Input
|
||||
defaultValue={-Math.round(physical.pitch * (180 / Math.PI))}
|
||||
onBlur={() => {
|
||||
@@ -123,7 +141,13 @@ export function RotationInputs() {
|
||||
ref={gunPitchInput}
|
||||
style={{ textAlign: 'right' }}
|
||||
/>
|
||||
<TextField.Slot>°</TextField.Slot>
|
||||
<TextField.Slot
|
||||
style={{
|
||||
userSelect: 'none',
|
||||
}}
|
||||
>
|
||||
°
|
||||
</TextField.Slot>
|
||||
</TextField.Root>
|
||||
</Flex>
|
||||
|
||||
|
||||
@@ -90,6 +90,7 @@ export function ShotDisplay() {
|
||||
<Card
|
||||
style={{
|
||||
width: shot.thicknesses.length > 1 ? 300 : 200,
|
||||
userSelect: 'none',
|
||||
}}
|
||||
>
|
||||
<Flex direction="column" gap="1">
|
||||
|
||||
Reference in new issue
Block a user