auto: 2026-07-28 18:33 (EOMSANGDON-HOME)
This commit is contained in:
@@ -397,6 +397,9 @@ export function createSurfaceMapViewer(): SurfaceMapViewer {
|
||||
{ passive: false },
|
||||
);
|
||||
viewport.addEventListener("pointerdown", (event) => {
|
||||
// 중간 버튼은 브라우저 기본 동작(페이지 자동 스크롤)이 지도 팬과 겹쳐 페이지 전체를
|
||||
// 흔들므로 기본 동작을 차단하고 지도 팬으로만 사용한다.
|
||||
if (event.button === 1) event.preventDefault();
|
||||
dragStart = { x: event.clientX, y: event.clientY, offsetX, offsetY };
|
||||
viewport.setPointerCapture(event.pointerId);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user