mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
fix: touch action
This commit is contained in:
1 parent
a0eb0d54f0
commit
b5064f9e8b
2 files changed
+9
-6
No files matched your search
+6
-6
@@ -9,17 +9,17 @@ const modelDefinitions = await awaitableModelDefinitions;
|
|||||||
|
|
||||||
const surfaceMaterial: Record<Props['only'], MeshBasicMaterial> = {
|
const surfaceMaterial: Record<Props['only'], MeshBasicMaterial> = {
|
||||||
gun: new MeshBasicMaterial({
|
gun: new MeshBasicMaterial({
|
||||||
color: mauveDark.mauve11,
|
color: mauveDark.mauve8,
|
||||||
toneMapped: false,
|
toneMapped: false,
|
||||||
}),
|
}),
|
||||||
turret: new MeshBasicMaterial({
|
turret: new MeshBasicMaterial({
|
||||||
color: mauveDark.mauve6,
|
color: mauveDark.mauve6,
|
||||||
toneMapped: false,
|
toneMapped: false,
|
||||||
transparent: true,
|
transparent: true,
|
||||||
opacity: 0.25,
|
opacity: 0.5,
|
||||||
}),
|
}),
|
||||||
body: new MeshBasicMaterial({
|
body: new MeshBasicMaterial({
|
||||||
color: mauveDark.mauve9,
|
color: mauveDark.mauve6,
|
||||||
toneMapped: false,
|
toneMapped: false,
|
||||||
transparent: true,
|
transparent: true,
|
||||||
opacity: 0.5,
|
opacity: 0.5,
|
||||||
@@ -27,17 +27,17 @@ const surfaceMaterial: Record<Props['only'], MeshBasicMaterial> = {
|
|||||||
};
|
};
|
||||||
const outlineMaterial: Record<Props['only'], LineBasicMaterial> = {
|
const outlineMaterial: Record<Props['only'], LineBasicMaterial> = {
|
||||||
gun: new LineBasicMaterial({
|
gun: new LineBasicMaterial({
|
||||||
color: mauveDark.mauve3,
|
color: mauveDark.mauve11,
|
||||||
toneMapped: false,
|
toneMapped: false,
|
||||||
}),
|
}),
|
||||||
turret: new LineBasicMaterial({
|
turret: new LineBasicMaterial({
|
||||||
color: mauveDark.mauve8,
|
color: mauveDark.mauve8,
|
||||||
toneMapped: false,
|
toneMapped: false,
|
||||||
transparent: true,
|
transparent: true,
|
||||||
opacity: 0.25,
|
opacity: 0.5,
|
||||||
}),
|
}),
|
||||||
body: new LineBasicMaterial({
|
body: new LineBasicMaterial({
|
||||||
color: mauveDark.mauve11,
|
color: mauveDark.mauve8,
|
||||||
toneMapped: false,
|
toneMapped: false,
|
||||||
transparent: true,
|
transparent: true,
|
||||||
opacity: 0.5,
|
opacity: 0.5,
|
||||||
|
|||||||
+3
@@ -208,7 +208,10 @@ export function GunFlexibilityVisualizer({
|
|||||||
|
|
||||||
<VisualizerCard
|
<VisualizerCard
|
||||||
ref={container}
|
ref={container}
|
||||||
|
style={{ touchAction: 'none' }}
|
||||||
onPointerMove={(event) => {
|
onPointerMove={(event) => {
|
||||||
|
event.preventDefault();
|
||||||
|
|
||||||
if (!container.current || !highlighter.current || !pointer.current)
|
if (!container.current || !highlighter.current || !pointer.current)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user