mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +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,
|
flex: 1,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<TextField.Slot>Yaw</TextField.Slot>
|
<TextField.Slot
|
||||||
|
style={{
|
||||||
|
userSelect: 'none',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Yaw
|
||||||
|
</TextField.Slot>
|
||||||
<TextField.Input
|
<TextField.Input
|
||||||
defaultValue={Math.round(physical.yaw * (180 / Math.PI))}
|
defaultValue={Math.round(physical.yaw * (180 / Math.PI))}
|
||||||
onBlur={() => {
|
onBlur={() => {
|
||||||
@@ -87,7 +93,13 @@ export function RotationInputs() {
|
|||||||
ref={turretYawInput}
|
ref={turretYawInput}
|
||||||
style={{ textAlign: 'right' }}
|
style={{ textAlign: 'right' }}
|
||||||
/>
|
/>
|
||||||
<TextField.Slot>°</TextField.Slot>
|
<TextField.Slot
|
||||||
|
style={{
|
||||||
|
userSelect: 'none',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
°
|
||||||
|
</TextField.Slot>
|
||||||
</TextField.Root>
|
</TextField.Root>
|
||||||
|
|
||||||
<TextField.Root
|
<TextField.Root
|
||||||
@@ -95,7 +107,13 @@ export function RotationInputs() {
|
|||||||
flex: 1,
|
flex: 1,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<TextField.Slot>Pitch</TextField.Slot>
|
<TextField.Slot
|
||||||
|
style={{
|
||||||
|
userSelect: 'none',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Pitch
|
||||||
|
</TextField.Slot>
|
||||||
<TextField.Input
|
<TextField.Input
|
||||||
defaultValue={-Math.round(physical.pitch * (180 / Math.PI))}
|
defaultValue={-Math.round(physical.pitch * (180 / Math.PI))}
|
||||||
onBlur={() => {
|
onBlur={() => {
|
||||||
@@ -123,7 +141,13 @@ export function RotationInputs() {
|
|||||||
ref={gunPitchInput}
|
ref={gunPitchInput}
|
||||||
style={{ textAlign: 'right' }}
|
style={{ textAlign: 'right' }}
|
||||||
/>
|
/>
|
||||||
<TextField.Slot>°</TextField.Slot>
|
<TextField.Slot
|
||||||
|
style={{
|
||||||
|
userSelect: 'none',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
°
|
||||||
|
</TextField.Slot>
|
||||||
</TextField.Root>
|
</TextField.Root>
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|
||||||
|
|||||||
@@ -90,6 +90,7 @@ export function ShotDisplay() {
|
|||||||
<Card
|
<Card
|
||||||
style={{
|
style={{
|
||||||
width: shot.thicknesses.length > 1 ? 300 : 200,
|
width: shot.thicknesses.length > 1 ? 300 : 200,
|
||||||
|
userSelect: 'none',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Flex direction="column" gap="1">
|
<Flex direction="column" gap="1">
|
||||||
|
|||||||
Reference in new issue
Block a user