src/video/emscripten/SDL_emscriptenevents.c
changeset 10319 c16a46e31811
parent 10318 7b9ae714c507
child 10320 f2e6dc590643
     1.1 --- a/src/video/emscripten/SDL_emscriptenevents.c	Tue Sep 13 00:03:36 2016 -0700
     1.2 +++ b/src/video/emscripten/SDL_emscriptenevents.c	Tue Sep 13 00:03:37 2016 -0700
     1.3 @@ -553,7 +553,7 @@
     1.4      emscripten_set_mousemove_callback("#canvas", data, 0, Emscripten_HandleMouseMove);
     1.5  
     1.6      emscripten_set_mousedown_callback("#canvas", data, 0, Emscripten_HandleMouseButton);
     1.7 -    emscripten_set_mouseup_callback("#canvas", data, 0, Emscripten_HandleMouseButton);
     1.8 +    emscripten_set_mouseup_callback("#document", data, 0, Emscripten_HandleMouseButton);
     1.9  
    1.10      emscripten_set_mouseenter_callback("#canvas", data, 0, Emscripten_HandleMouseFocus);
    1.11      emscripten_set_mouseleave_callback("#canvas", data, 0, Emscripten_HandleMouseFocus);
    1.12 @@ -590,7 +590,7 @@
    1.13      emscripten_set_mousemove_callback("#canvas", NULL, 0, NULL);
    1.14  
    1.15      emscripten_set_mousedown_callback("#canvas", NULL, 0, NULL);
    1.16 -    emscripten_set_mouseup_callback("#canvas", NULL, 0, NULL);
    1.17 +    emscripten_set_mouseup_callback("#document", NULL, 0, NULL);
    1.18  
    1.19      emscripten_set_mouseenter_callback("#canvas", NULL, 0, NULL);
    1.20      emscripten_set_mouseleave_callback("#canvas", NULL, 0, NULL);