Cocos simplifies game creation and distribution with Cocos Creator, a free, open-source, cross-platform game engine. Empowering millions of developers to create high-performance, engaging 2D/3D games and instant web entertainment.
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)
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)
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)
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)
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