Skip to content

[Bug]: playwright-cli mousewheel swaps dx and dy #39715

Closed

Description

Version

main branch (1.59.0-next)

Steps to reproduce

Repository: https://github.com/microsoft/playwright

Minimal repro:

  1. Open a page that logs wheel events (event.deltaX and event.deltaY).
  2. Run 'playwright-cli mousewheel 10 5'.
  3. Observe the page receives 'wheel 5 10'.

Expected behavior

playwright-cli mousewheel 10 5
should produce a wheel event with 'deltaX = 10' and 'deltaY = 5'

Actual behavior

The CLI command layer reverses the axes

Additional context

Impacts 'playwright-cli' only and automation based on it

Environment

System:
  OS: macOS 26.2 (25C56)
Binaries:
  Node: 20.18.3
  npm: 10.8.2
Repo version:
  playwright-internal: 1.59.0-next
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions