Skip to content

feat(drag): hold drop modifiers while moving to the target - #344

Open
route wants to merge 2 commits into
mainfrom
feat/drag-hold-modifiers
Open

route wants to merge 2 commits into
mainfrom
feat/drag-hold-modifiers

Conversation

@route

@route route commented Oct 18, 2026

Copy link
Copy Markdown
Member

Follow-up to rubycdp/ferrum#655 (rubycdp/ferrum#581).

Node#drag_to(..., drop_modifiers:) set the modifiers only on the final mouseup: the move to the target carried none and no keydown/keyup fired. Capybara's Selenium driver presses the keys after mousedown and holds them through the move and release. The mouse drag now does the same with keyboard.hold(*drop_modifiers) { mouse.move(...).up }. The HTML5 path is unchanged.

The Gemfile points Ferrum at the rubycdp/ferrum#655 branch so CI can run. Before merging, release Ferrum, drop that line and bump the gemspec dependency.

route added 2 commits October 18, 2026 19:44
drag_to set drop_modifiers only on mouseup. It now holds them with Ferrum's keyboard.hold through the move and release, sending
keydown and keyup like Capybara's Selenium driver. Refs rubycdp/ferrum#581.
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