Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/features/map/collaboration/CollabCursorsOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,11 @@
// Track my mouse position → update presence cursor as lat/lng
useEffect(() => {
if (!map) return;
const container = map.getContainer() as HTMLElement;
const container = document.querySelector<HTMLElement>('[role="application"][aria-label="한옥 위치 지도"]');
if (!container) return;

function handleMouseMove(e: MouseEvent) {
const rect = container.getBoundingClientRect();

Check failure on line 66 in src/features/map/collaboration/CollabCursorsOverlay.tsx

View workflow job for this annotation

GitHub Actions / E2E 테스트 실행

'container' is possibly 'null'.

Check failure on line 66 in src/features/map/collaboration/CollabCursorsOverlay.tsx

View workflow job for this annotation

GitHub Actions / 번들 크기 분석

'container' is possibly 'null'.

Check failure on line 66 in src/features/map/collaboration/CollabCursorsOverlay.tsx

View workflow job for this annotation

GitHub Actions / 번들 크기 분석

'container' is possibly 'null'.

Check failure on line 66 in src/features/map/collaboration/CollabCursorsOverlay.tsx

View workflow job for this annotation

GitHub Actions / 프로젝트 빌드

'container' is possibly 'null'.

Check failure on line 66 in src/features/map/collaboration/CollabCursorsOverlay.tsx

View workflow job for this annotation

GitHub Actions / 성능 감사 실행

'container' is possibly 'null'.

Check failure on line 66 in src/features/map/collaboration/CollabCursorsOverlay.tsx

View workflow job for this annotation

GitHub Actions / 접근성 이슈 검사

'container' is possibly 'null'.

Check failure on line 66 in src/features/map/collaboration/CollabCursorsOverlay.tsx

View workflow job for this annotation

GitHub Actions / TypeScript 타입 검사

'container' is possibly 'null'.
const x = e.clientX - rect.left;
const y = e.clientY - rect.top;
try {
Expand Down
Loading