diff options
author | Christoph Schröder <cs@keksdev.de> | 2020-04-28 08:42:41 +0200 |
---|---|---|
committer | Christoph Schröder <cs@keksdev.de> | 2020-04-28 08:42:41 +0200 |
commit | b1e8ac7b0876db22cfabc87c6a26911e0f632759 (patch) | |
tree | 6bb0a4e26d7a3a5514863b641d6efbf2946de446 /doc/classes | |
parent | 717f053e371f39b65ae1694901056580e1a8d6f9 (diff) |
Move mouse wheel handler from window to canvas element in HTML
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)
Diffstat (limited to 'doc/classes')
0 files changed, 0 insertions, 0 deletions