mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 14:11:15 +00:00
Similar to https://github.com/godotengine/godot/pull/36557
At least in chrome, the following error is printed for each mouse wheel
rotation:
[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/6662647093133312
This PR moves the handler to the canvas and thereby fixes the error.
Tested on: Chrome and Firefox (MacOS), Firefox, Chrome(Android), Safari (IPad + MacOS)
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| api | ||
| export | ||
| audio_driver_javascript.cpp | ||
| audio_driver_javascript.h | ||
| detect.py | ||
| dom_keys.inc | ||
| engine.js | ||
| http_client.h.inc | ||
| http_client_javascript.cpp | ||
| http_request.h | ||
| http_request.js | ||
| id_handler.js | ||
| javascript_eval.cpp | ||
| javascript_main.cpp | ||
| logo.png | ||
| os_javascript.cpp | ||
| os_javascript.h | ||
| platform_config.h | ||
| pre.js | ||
| run_icon.png | ||
| SCsub | ||