From 0283dd137a539b8080f0c1bb68ac021caf509b8d Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Fri, 19 Mar 2021 16:30:37 +1100 Subject: [PATCH] Moved precision zoom to shift key --- src/docs/howTo/shortcuts.md | 23 ++++++++++++----------- src/docs/releaseNotes/v1.8.1.md | 2 +- src/hooks/useStageInteraction.js | 4 ++-- 3 files changed, 15 insertions(+), 14 deletions(-) diff --git a/src/docs/howTo/shortcuts.md b/src/docs/howTo/shortcuts.md index 1155cee..8d0f823 100644 --- a/src/docs/howTo/shortcuts.md +++ b/src/docs/howTo/shortcuts.md @@ -1,16 +1,17 @@ ## General -| Shortcut | Description | -| ---------------- | ------------ | -| W | Move Tool | -| Space Bar (Hold) | Move Tool | -| F | Fog Tool | -| D | Drawing Tool | -| M | Measure Tool | -| Q | Pointer Tool | -| N | Note Tool | -| + | Zoom In | -| - | Zoom Out | +| Shortcut | Description | +| ---------------- | -------------- | +| W | Move Tool | +| Space Bar (Hold) | Move Tool | +| F | Fog Tool | +| D | Drawing Tool | +| M | Measure Tool | +| Q | Pointer Tool | +| N | Note Tool | +| + | Zoom In | +| - | Zoom Out | +| Shift + Zoom | Precision Zoom | ## Fog Tool diff --git a/src/docs/releaseNotes/v1.8.1.md b/src/docs/releaseNotes/v1.8.1.md index ce634b4..b7b37a8 100644 --- a/src/docs/releaseNotes/v1.8.1.md +++ b/src/docs/releaseNotes/v1.8.1.md @@ -10,7 +10,7 @@ This release focuses on improving performance for map zooming and asset loading. - Using the fog brush tool has been optimised and is now less likely to result in small fog shapes on intersections. - You can now clear a map from being shared by clicking the select map button with no maps highlighted. - Shared dice rolls now only show icons for the dice that have been rolled in the expanded view mode. -- Holding down the Alt key while zooming will now activate a precision zoom mode, allowing mouse users to more precisely zoom maps. +- Holding down the Shift key while zooming will now activate a precision zoom mode, allowing mouse users to more precisely zoom maps. - The game reconnection message now has a more compact UI. --- diff --git a/src/hooks/useStageInteraction.js b/src/hooks/useStageInteraction.js index 0581b43..9d6ade1 100644 --- a/src/hooks/useStageInteraction.js +++ b/src/hooks/useStageInteraction.js @@ -215,13 +215,13 @@ function useStageInteraction( onStageScaleChange(newScale); } - if (key === "Alt") { + if (key === "Shift") { setZoomSpeed(0.25); } } function handleKeyUp({ key }) { - if (key === "Alt") { + if (key === "Shift") { setZoomSpeed(1); } }