d70cb49eef
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
|
||
---|---|---|
.. | ||
android | ||
haiku | ||
iphone | ||
javascript | ||
osx | ||
server | ||
uwp | ||
windows | ||
x11 | ||
register_platform_apis.h | ||
SCsub |