summaryrefslogtreecommitdiff
path: root/doc/BUILD.md
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-06 23:16:18 +0100
committerskal <pascal.massimino@gmail.com>2026-02-06 23:16:18 +0100
commit036114d12d024273e752ffbb68a95a04ee34d4fa (patch)
treec3b8939480249c22f4b0a2a67a788088e4bd3c85 /doc/BUILD.md
parent0c98c830b382d66c420524ff395e12164a566dd8 (diff)
fix(spectral_editor): Disable vertical zoom/pan for logarithmic frequency axis
Root Cause: The frequency axis uses logarithmic scale (20 Hz to 16 kHz), but the zoom calculation was treating it as linear. This caused coordinate calculation errors when zooming, resulting in curves and frequency ticks moving up when the content hit the viewport edge. Changes: - Zoom now only affects horizontal axis (time/frame) - Removed vertical zoom (pixelsPerBin changes) during Ctrl/Cmd + wheel - Disabled vertical pan (normal wheel) for logarithmic mode - Horizontal pan (Shift + wheel) still works correctly Explanation: With logarithmic frequency scale, the frequency range (FREQ_MIN to FREQ_MAX) is always scaled to fit canvas height. There's no "extra content" to zoom into vertically. The frequency axis should remain fixed while only the time axis (which is linear) supports zoom. The bug manifested as vertical drift because the offset calculation used linear math (viewportOffsetY = freqUnderCursor * pixelsPerBin - mouseY) on a logarithmic coordinate system, causing accumulated errors. Fixes: Curves and frequency ticks now stay stable during horizontal zoom.
Diffstat (limited to 'doc/BUILD.md')
0 files changed, 0 insertions, 0 deletions