Sounds nice, a PR would be appreciated. On Fri, May 6, 2016 at 7:05 AM, Hoong Ern Ng <[email protected]> wrote:
> Seems like you're running into a lot of the same issues I did :) > https://github.com/kripken/emscripten/issues/3571 > > I solved it by proxying 'wheel' instead of 'DOMMouseScroll' and > 'mousewheel', and adding a stub "canvas.onwheel = function() {};" on the > fake canvas in proxyWorker. I'm not on incoming/master right now, so I > haven't tested it there, but it might solve the issue. > > > On Thursday, May 5, 2016 at 11:08:11 PM UTC-7, awt wrote: >> >> Hi, >> >> As of now, Firefox uses DOMMouseScroll and Chrome uses mousewheel but the >> Canvas object in ProxyWorker.js does not seem to have a onwheel or >> onmousewheel event defined . I was checking >> out _emscripten_set_wheel_callback and it seems that we only support the >> 'wheel' and 'mousewheel' event so we can't really register for a >> DOMMouseScroll event. >> >> Would it make sense to add the 'wheel' event to ProxyClient.js and the >> onwheel event to the Canvas object in ProxyWorker.js? >> > -- > You received this message because you are subscribed to the Google Groups > "emscripten-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
