Co-authored-by: Reifonas <211114984+Reifonas@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-05-21 19:14:18 +00:00
parent 11fcc99896
commit bd13018f48
+1 -1
View File
@@ -1056,7 +1056,7 @@ export function ModelViewerCanvas({ url }: ModelViewerProps) {
className="!bg-background"
onPointerMissed={(e) => {
if (useModelStore.getState().selectionMode) {
gl.domElement.dispatchEvent(new CustomEvent('tsxr-selection-miss', { detail: e }));
(e.target as HTMLCanvasElement).dispatchEvent(new CustomEvent('tsxr-selection-miss', { detail: e }));
}
}}
onCreated={({ gl }) => {