Skip to content

Commit 3d5660a

Browse files
committed
Disable keyboard map rotations
1 parent acc229a commit 3d5660a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/map.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,8 @@ const MapView: FC<MapViewProps> = ({ openChangesetId, setOpenChangesetId }) => {
233233
map.dragRotate.disable();
234234
// disable map rotation using touch rotation gesture
235235
map.touchZoomRotate.disableRotation();
236+
// disable map rotation using shift + arrows
237+
map.keyboard.disableRotation();
236238
map.addControl(
237239
new maplibregl.NavigationControl({
238240
showCompass: false,

0 commit comments

Comments
 (0)