-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
more than one touch asserts emscripten_set_touchmove_callback callback #12826
Comments
What error do you see? That program doesn't seem to compile - it is missing at least Also I assume this needs some pattern of input to trigger the bug - it would be good if the testcase can create events to cause the bug automatically. |
I got the same problem but for me it occurs on single touches as well, and seemingly occurs on all touch events. I hit the same asserts as mentioned in bug #14064. This was tested on a Windows 10 tablet using Emscripten 2.0.25 and was tested on Firefox 90.0 and Edge 91.0.864.70 with the problem happening on both. For the moment we've disabled assertions to work around this but it isn't an ideal solution. |
As mentioned in #14064, I think this might be fixed now? |
More than one active touch crashes emscripten_set_touchmove_callback
(no other callbacks crash)
Using 2.0.9 with this simple example:
`
#include
#include <emscripten/html5.h>
EM_BOOL touchmove_callback(int, EmscriptenTouchEvent const touchEvent, void) {
static int i = 0;
std::cout << touchEvent->numTouches << std::endl;
return EM_FALSE;
}
int main(int const, char const* const []) {
emscripten_set_touchmove_callback("#canvas", nullptr, 1, touchmove_callback);
return 0;
}
`
The text was updated successfully, but these errors were encountered: