Events

Norska lets you interact with any Object3D that has a raycast, using the same events as in the DOM.

<div 
    x-3.mesh
    @click="() => console.log('click')"
    @contextMenu="() => console.log('context menu')"
    @dblClick="() => console.log('double click')"
    @wheel="() => console.log('wheel spins')"
    @pointerUp="() => console.log('up')"
    @pointerDown="() => console.log('down')"
    @pointerOver="() => console.log('over')"
    @pointerIn="() => console.log('in')"
    @pointerOut="() => console.log('out'"
    @pointerMove="() => console.log('move')"
>
<!-- ... -->
</div>

Last updated