diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2020-05-01 12:51:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-01 12:51:35 +0200 |
commit | c7e662199fbb7d8d688cfcd1bdb52cbbfafb3679 (patch) | |
tree | 94536c15bcbdec1d22f67c9f2da9fb0f81f6b281 /platform | |
parent | 7cd43c17e9fa6b7ebf3372371cf914bf436d604b (diff) | |
parent | b1e8ac7b0876db22cfabc87c6a26911e0f632759 (diff) |
Merge pull request #37414 from Schroedi/fix_html_mouse_input
Move wheel handlers from window to canvas element in HTML
Diffstat (limited to 'platform')
-rw-r--r-- | platform/javascript/os_javascript.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/javascript/os_javascript.cpp b/platform/javascript/os_javascript.cpp index ad06aef86e..c0230b94fa 100644 --- a/platform/javascript/os_javascript.cpp +++ b/platform/javascript/os_javascript.cpp @@ -981,7 +981,7 @@ Error OS_JavaScript::initialize(const VideoMode &p_desired, int p_video_driver, SET_EM_CALLBACK(EMSCRIPTEN_EVENT_TARGET_WINDOW, mousemove, mousemove_callback) SET_EM_CALLBACK(GODOT_CANVAS_SELECTOR, mousedown, mouse_button_callback) SET_EM_CALLBACK(EMSCRIPTEN_EVENT_TARGET_WINDOW, mouseup, mouse_button_callback) - SET_EM_CALLBACK(EMSCRIPTEN_EVENT_TARGET_WINDOW, wheel, wheel_callback) + SET_EM_CALLBACK(GODOT_CANVAS_SELECTOR, wheel, wheel_callback) SET_EM_CALLBACK(GODOT_CANVAS_SELECTOR, touchstart, touch_press_callback) SET_EM_CALLBACK(GODOT_CANVAS_SELECTOR, touchmove, touchmove_callback) SET_EM_CALLBACK(GODOT_CANVAS_SELECTOR, touchend, touch_press_callback) |