melonJS
    Preparing search index...

    Variable touchEventConst

    touchEvent: boolean = ...

    True if the browser supports Touch Events.

    Without a DOM (nx.js on the Nintendo Switch, for example), a global TouchEvent also counts: such a runtime has no ontouchstart property to detect, but dispatches touch events on the display canvas. Browsers, which all have a DOM, are detected exactly as before.