set whether melonJS should prevent the default browser action on registered
events. This is the global default; input.bindKey's preventDefault
argument overrides it per binding.
Pointer listeners read it when they are registered, so call this before
creating the Application for it to apply to the engine's own
listeners.
Parameters
value: boolean
true to prevent default browser actions (the default)
Returns void
Example
// let the browser handle scrolling, zooming and context menus itself me.input.setPreventDefault(false);
set whether melonJS should prevent the default browser action on registered events. This is the global default; input.bindKey's
preventDefaultargument overrides it per binding.Pointer listeners read it when they are registered, so call this before creating the Application for it to apply to the engine's own listeners.