Skip to content

feat(screenshot): add touch & stylus support for region capture - #3353

Merged
bbedward merged 2 commits into
duxlabs-dev:masterfrom
hthienloc:feat/screenshot-touch-stylus-support
Sep 7, 2026
Merged

bbedward merged 2 commits into
duxlabs-dev:masterfrom
hthienloc:feat/screenshot-touch-stylus-support

Conversation

@hthienloc

Copy link
Copy Markdown
Member

@hthienloc

Copy link
Copy Markdown
Member Author

/claude review

@claude

claude Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Claude review

One issue: the touch release path is missing the scroll-phase guard the pointer path has.

  • handleTouchUp runs the full release logic in phaseScroll, so a tap on the scroll bar outside the done/cancel buttons restarts the scroll session under --no-confirm, losing stitched rows and leaking the old session buffers — core/internal/screenshot/region_input.go:254

Checked: touch handler parity with the pointer handlers, coordinate spaces, multi-touch id filtering, wl_touch lifecycle in cleanup(), and the new tests. Model: claude-opus-5.

@hthienloc

Copy link
Copy Markdown
Member Author

/claude review

@claude

claude Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Claude review

No issues found.

The scroll-phase guard flagged in the previous review is now in place (handleTouchUp returns after clearing touch state when phase == phaseScroll, region_input.go:262).

Checked: touch handler parity with the pointer path (surface lookup, ctrl resize/move, anchor coords, --no-confirm finish), surface-local vs global coordinate spaces, single-point id filtering across down/motion/up/cancel, finishScroll leaving phase == phaseScroll so the new guard actually holds, wl_touch release in cleanup(), and that the new tests do not depend on render state (renderSurface bails on a nil source buffer). Model: claude-opus-5.

@bbedward
bbedward merged commit a9fce46 into duxlabs-dev:master Sep 7, 2026
3 checks passed
dank-shell-app Bot pushed a commit that referenced this pull request Sep 7, 2026
* feat(screenshot): add touch and stylus input support for region capture

* fix(screenshot): guard against finishSelection on touch up during scroll phase

port 1.6

(cherry picked from commit a9fce46)
@hthienloc
hthienloc deleted the feat/screenshot-touch-stylus-support branch November 15, 2026 15:38
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.

2 participants