Co-authored-by: Reifonas <211114984+Reifonas@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-05-21 19:14:09 +00:00
parent 361135a24e
commit 11fcc99896
+5
View File
@@ -1054,6 +1054,11 @@ export function ModelViewerCanvas({ url }: ModelViewerProps) {
gl={{ antialias: true, alpha: true, powerPreference: 'high-performance', preserveDrawingBuffer: true }} gl={{ antialias: true, alpha: true, powerPreference: 'high-performance', preserveDrawingBuffer: true }}
frameloop="always" frameloop="always"
className="!bg-background" className="!bg-background"
onPointerMissed={(e) => {
if (useModelStore.getState().selectionMode) {
gl.domElement.dispatchEvent(new CustomEvent('tsxr-selection-miss', { detail: e }));
}
}}
onCreated={({ gl }) => { onCreated={({ gl }) => {
const isApple = /Mac|iPhone|iPad/.test(navigator.platform); const isApple = /Mac|iPhone|iPad/.test(navigator.platform);
const maxRatio = isApple ? 2 : 1.5; const maxRatio = isApple ? 2 : 1.5;