With svelte-konva
you can easily listen to user input events (click
, dblclick
, mouseover
, tap
, dbltap
, touchstart
, etc…) and drag&drop events (dragstart
, dragmove
, dragend
).
<script> |
For the full list of events take a look into on() method documentation.
Bubbling
Konva events bubble up by default. To prevent this you can call preventDefault()
on the event object or set the cancelBubble
property of the Konva event to false
:
function handleClick(e) { |
Enjoying Konva? Please consider to
support the project.