Skip to content

feat(interaction): add real mouse-wheel primitive - #128

Open
NianJiuZst wants to merge 1 commit into
Tencent:mainfrom
NianJiuZst:codex/real-wheel-primitive
Open

feat(interaction): add real mouse-wheel primitive#128
NianJiuZst wants to merge 1 commit into
Tencent:mainfrom
NianJiuZst:codex/real-wheel-primitive

Conversation

@NianJiuZst

Copy link
Copy Markdown
Contributor

Summary

  • add bsk wheel --delta-y <pixels> [ref-or-selector] backed by the new tool.wheel RPC
  • dispatch a native Chromium Input.dispatchMouseEvent with type: "mouseWheel" at the viewport centre or an optional ref/selector action point
  • support horizontal deltas and modifiers while preserving Agent Window scope, OOPIF-aware target geometry, cancellation, dialogs, hover state, and overlay bypass

Validation

  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets --locked -- -D warnings
  • cargo test --workspace --locked (237 CLI/daemon unit tests plus all integration and protocol tests)
  • pnpm lint
  • extension TypeScript compile, 58 test files / 689 tests, and production build
  • node --test scripts/*.test.mjs
  • real Chromium probes with the branch-built CLI and unpacked extension in an isolated daemon/profile:
    • viewport mode: --delta-y 600 moved scrollY from 0 to 600; the page observed isTrusted=true
    • targeted mode: wheel '#panel' --delta-y 300 moved the nested panel's scrollTop from 0 to 300 while windowScrollY stayed 0; the page again observed isTrusted=true

@NianJiuZst
NianJiuZst marked this pull request as ready for review August 21, 2026 14:47
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