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

Chrome on mac is getting the wrong button ID on mouse_move #14119

Closed
yeshao2069 opened this issue Feb 1, 2023 · 2 comments
Closed

Chrome on mac is getting the wrong button ID on mouse_move #14119

yeshao2069 opened this issue Feb 1, 2023 · 2 comments

Comments

@yeshao2069
Copy link
Contributor

Cocos Creator version

2.4.9,2.4.11

System information

macOS + Chrome、macOS + Safari

Issue description

mac computer on chrome, listening to mouse_move for mouse events, holding down the left mouse button to move, gets a buttonID of 0 (correct), holding down the right mouse button to move, gets a buttonID of 0 (incorrect)

image

mac computer on safari, listening to mouse_move for mouse events, holding down the left mouse button to move, gets a buttonID of 0 (correct), holding down the right mouse button to move, gets a buttonID of 2 (correct)

image

Relevant error log output

No response

Steps to reproduce

Refer to this demo

NewProject_1.zip

Related Forum Feedback

https://discuss.cocos2d-x.org/t/an-issue-with-node-on-cc-node-eventtype-mouse-move-v2-4-9/58158/3

Minimal reproduction project

No response

@yeshao2069 yeshao2069 added Bug Needs Triage Needs to be assigned by the team labels Feb 1, 2023
@pandamicro pandamicro added Module: PAL Env: Web and removed Needs Triage Needs to be assigned by the team labels Feb 11, 2023
@pandamicro pandamicro added this to the V3.7.2 milestone Feb 11, 2023
@yeshao2069
Copy link
Contributor Author

image

NewProject_370.zip

I tested with version 3.7.0 and on Chrome + mac, the buttonID obtained is correct.

@LoryWu
Copy link

LoryWu commented Sep 8, 2023

2.4.12-0906版本验证已解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

5 participants