I’m not doing this globally, just for a small canvas/WebGL window.
However, stdweb’s add_event_listener wants functions of type “event -> ()”
Is there anyway to make this work within existing stdweb, or does this involve lots of js! macros ?
evt.prevent_default() is not enough.
More specifically, I’ve already done
evt.prevent_default() on the MouseDownEvent, MouseUpEvent, and MouseMoveEvent.
This by itself is not sufficient.
I’m using Chrome on Linux.
Appears simplest way to solve is this
<body oncontextmenu="return false;"> ... </body>