Feature: Auto Zoom Reset option to Minimap module - #1289
Merged
EllesmereGaming merged 1 commit intoAug 12, 2026
Merged
Conversation
Adds a "Reset Zoom" slider (0-15s, default 0/disabled) next to Free Move Buttons that snaps the minimap back to max zoom-out after N seconds of no manual zoom change (scroll wheel or +/- buttons).
JuJuFX-dev
force-pushed
the
feature/minimap-auto-zoom-reset
branch
from
August 12, 2026 20:04
1bd8ae0 to
62221b3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds an optional Auto Zoom Reset to the Minimap module. When enabled, the minimap automatically zooms back out to maximum distance (zoom level 0) after a configurable number of seconds without a manual zoom change (scroll wheel or the +/- buttons).
Configured via a single "Reset Zoom" slider (0-15 seconds) placed next to the existing "Free Move Buttons" toggle in the minimap options. 0 (the default) disables the feature entirely, matching current behavior.
How was it tested?
Tested in-game on live retail: enabled the slider at various values (1-15s), zoomed in with the scroll wheel and with the +/- buttons, confirmed the map snaps back to max zoom-out after the configured delay and stays put while actively zooming. Confirmed the slider defaults to 0/disabled on a fresh profile and that existing zoom/scroll behavior is unchanged at 0.
Not tested on the 12.1 PTR client - the change touches only
Minimap:GetZoom()/SetZoom(), which the module already calls elsewhere without anIS_121split, so no divergence is expected, but flagging per the "both clients" criterion.Screenshots
Not applicable - this is a single options-menu slider added next to an existing row, no layout/visual change beyond one new control.
Checklist
zoomResetSeconds = 0by default, which disables the reset path entirely.RestartZoomResetTimer()reads the setting and returns immediately without creating a timer when the value is 0.C_Timer.NewTimer, cancelled and re-armed only on the actual zoom-change events (scroll wheel, +/- button clicks) - not a per-frame or polling timer. This mirrors the existing debounce-timer pattern already used elsewhere in this file (e.g. the hover-reveal watcher and the free-move-button save). NoOnUpdate, no polling loop.HookScript/hooksecurefunconly, neverSetScripton Blizzard frames - only calls the existingMinimap:GetZoom()/SetZoom()API methods (already used elsewhere in this file for scroll-to-zoom), and hooks the zoom buttons via the existingHookScriptpattern.