Skip to content

Right-drag erases with the brush; the brush keeps its size slider - #48

Merged
EgeSeker merged 2 commits into
mainfrom
feat/brush-slider-right-erase
Nov 25, 2026
Merged

EgeSeker merged 2 commits into
mainfrom
feat/brush-slider-right-erase

Conversation

@EgeSeker

Copy link
Copy Markdown
Collaborator

Two requests from annotating the PANTHER dataset.

What changed

  • Right-drag erases with a brush. With the brush or the threshold brush, dragging with the right button erases with the same size and shape, as Shift-drag does (Shift-drag stays). With every other tool, the eraser included, right-drag still sets the window. The brush hint now reads "Right-drag erases.", and the mouse list in Shortcuts shows both. RedBrick and ITK-SNAP erase the same way.
  • The brush keeps its size slider. Two old width rules hid it below 1440 wide (most laptop windows), leaving only the number. It now stays at every width, 64 wide below 1440. The hint, labels and Paint over buttons give way first, as the strip already does.

Decision in docs/process/DECISIONS.md, design spec and changelog updated.

How it was tested

  • New e2e tests: right-drag erases with both brushes and leaves the window as it is, while the crosshair and eraser still set the window; the slider is visible and works at 1920, 1366, 1280 and 1024 wide.
  • Full e2e (Edge, Windows): 268 passed. The only failures are the two clipboard tests that fail locally on Windows (operations.spec.ts:147, report.spec.ts:100).
  • The strip-fit tests pass at 1280 and 1024, with a long segment name; at 1280 the Paint over buttons still fit with the slider.
  • Unit: 1,138 of 1,139 passed in the full run; the one failure is the timing test in src/collab/hardening.test.ts that fails when the machine is busy, and the file passes on its own (17 of 17).
  • Lint and typecheck clean.

Not verified

  • Right-drag in the real desktop app, and on macOS (a trackpad right-drag is a two-finger click-drag).

🤖 Generated with Claude Code

EgeSeker and others added 2 commits November 24, 2026 21:42
… at every width.

- With the brush or threshold brush, right-drag erases with the same size
  and shape, as Shift-drag does. Every other tool keeps right-drag for the
  window.
- The brush size slider was hidden below 1440 wide by two old width rules.
  It now stays, 64 wide below 1440; the hint, labels and lists give way
  first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With the brush size slider now in the strip, picking "Empty only" at
1280 wide can turn Paint over into a list where fonts are wider (Linux,
macOS), so the test chooses through the helper the other strip tests use.
The paint over checks themselves are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@EgeSeker
EgeSeker merged commit bec02b1 into main Nov 25, 2026
18 checks passed
@EgeSeker
EgeSeker deleted the feat/brush-slider-right-erase branch November 25, 2026 15:09
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