Skip to content

Avoid accidental graph edits on click#30

Merged
bhack merged 2 commits into
mainfrom
fix/graph-click-drag-threshold
May 20, 2026
Merged

Avoid accidental graph edits on click#30
bhack merged 2 commits into
mainfrom
fix/graph-click-drag-threshold

Conversation

@bhack
Copy link
Copy Markdown
Owner

@bhack bhack commented May 20, 2026

Summary

  • keep graph clicks selection-only until drag movement passes the GTK drag threshold
  • anchor graph drags to the original band point so points do not jump to the click location
  • add graph interaction tests for zero-offset drag, below-threshold movement, and anchored dragging

Validation

  • .venv/bin/python -m pytest tests/test_mini_eq_window_graph.py -q
  • .venv/bin/python -m ruff check .
  • .venv/bin/python -m ruff format --check .
  • .venv/bin/python -m pytest -q

@bhack bhack merged commit 18d1ccb into main May 20, 2026
14 checks passed
@bhack bhack deleted the fix/graph-click-drag-threshold branch May 20, 2026 02:06
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.

1 participant