How To Capture Mac Trackpad Event On HTML5 Canvas

401 views
Skip to first unread message

awt

unread,
Apr 18, 2016, 4:47:31 AM4/18/16
to emscripten-discuss
Hi,

I'm trying to implement zooming for the entities in my HTML5 Canvas using the Trackpad pinch zoom on my Mac.However, I see that the entire browser is zoomed instead. Does Emscripten provide a callback to capture the Trackpad pinch event? Thanks.

juj j

unread,
Apr 24, 2016, 4:53:31 AM4/24/16
to emscripte...@googlegroups.com
If there exists a JavaScript API to do it, it would be doable. http://stackoverflow.com/questions/15416851/catching-mac-trackpad-zoom suggests that it might have come in as a Ctrl+wheel event at some point in some browsers, in which case you could use Emscripten's html5.h mouse wheel event handler for it in C side, or handwrite a JS handler for it.

2016-04-18 11:47 GMT+03:00 awt <knigh...@gmail.com>:
Hi,

I'm trying to implement zooming for the entities in my HTML5 Canvas using the Trackpad pinch zoom on my Mac.However, I see that the entire browser is zoomed instead. Does Emscripten provide a callback to capture the Trackpad pinch event? Thanks.

--
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 emscripten-disc...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

awt

unread,
Apr 25, 2016, 1:24:37 AM4/25/16
to emscripten-discuss
ok thanks, I will try to catch the wheel event + ctrl then.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages