Skip to content

Commit 987d5c7

Browse files
Fix overlay camera calculations on three + r166 (#144)
1 parent 236a4a4 commit 987d5c7

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.changeset/thin-adults-arrive.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"react-three-map": patch
3+
---
4+
5+
Fix `overlay` camera calculations bug introduced by `three=>r166`. More info in [#143](https://github.com/RodrigoHamuy/react-three-map/issues/143).

src/core/canvas-overlay/canvas-portal.tsx

-4
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ export const CanvasPortal = memo<CanvasPortalProps>(({
2929
})
3030

3131
return <Canvas
32-
camera={{
33-
matrixAutoUpdate: false,
34-
matrixWorldAutoUpdate: false,
35-
}}
3632
events={events}
3733
eventSource={eventSource}
3834
{...props}

0 commit comments

Comments
 (0)