Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

always emit deltaX and deltaY for Input.dispatchMouseEvent #11

Merged
merged 1 commit into from May 25, 2021

Conversation

ZekeLu
Copy link
Member

@ZekeLu ZekeLu commented May 18, 2021

Otherwise, the CDP message with the following params:

 {"type":"mouseWheel","x":0,"y":0,"modifiers":0,"deltaY":100}

will result in an error:

 {"code":-32602,"message":"'deltaX' and 'deltaY' are expected for mouseWheel event"}

Fixes #10

PS: I'm not sure is it okay to send this PR to the old branch. It seems that the old branch is the one used to generate the current github.com/chromedp/cdproto package.

Otherwise, the CDP message with the following params:
 {"type":"mouseWheel","x":0,"y":0,"modifiers":0,"deltaY":100}
will result in an error:
 {"code":-32602,"message":"'deltaX' and 'deltaY' are expected for mouseWheel event"}

Fixes chromedp#10
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.

None yet

1 participant