Skip to content

Fix value-axis jumps when enabling drag modifiers - #34

Merged
imakris merged 1 commit into
masterfrom
codex/fix-drag-modifier-delta
Nov 11, 2026
Merged

imakris merged 1 commit into
masterfrom
codex/fix-drag-modifier-delta

Conversation

@imakris

@imakris imakris commented Nov 11, 2026

Copy link
Copy Markdown
Member

Enabling Ctrl or Alt during an existing plot drag reused a stale vertical pointer reference, applying earlier unmodified movement to the value axis. The reported sequence moved the lower value limit by 20.2 units instead of 0.2.

Advance the vertical reference on every engaged move while applying value-axis panning only when Ctrl or Alt is held. Preserve initial click tolerance, horizontal routing and the existing update order before value-limit signals.

Add production interaction regressions covering both modifiers, release/re-enablement, stationary changes, reverse movement, local/shared time axes and click tolerance.

Validation

Native checks used Qt 6.12.0, GCC 14.2, the standard CMake build and the maintained offscreen PlotInteractionItem test target, with text rendering disabled:

Implementation Result
Original master with the new regression tests 39 passed, 2 failed; Ctrl and Alt each reproduce 20.2 instead of 0.2
This change 41 passed, 0 failed
This change composed with PR #32 43 passed, 0 failed

PR #32 merges without conflicts; its return-through-press-position and genuine-click regressions pass in the combined run. The existing production event handlers and widget range calculations are exercised. Independent source review and git diff --check also passed.

Fixes #33. Related: #32.

Advance the vertical pointer reference on every engaged drag move so Ctrl
and Alt consume only new movement. Keep initial click tolerance and
horizontal routing unchanged.

Add regressions for modifier transitions, re-enablement, stationary and
reverse movement, local/shared time axes, and click tolerance.

Fixes #33.
@imakris
imakris merged commit d649160 into master Nov 11, 2026
8 of 12 checks passed
@imakris
imakris deleted the codex/fix-drag-modifier-delta branch November 11, 2026 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enabling Ctrl or Alt during a plot drag replays earlier vertical movement

1 participant