Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (6 sloc) 715 Bytes

title: How to listen to an event on a canvas shape with Vue and Konva? layout: vue_page

With vue-konva you can easily listen to user input events (click, dblclick, mouseover, tap, dbltap, touchstart, etc...) and drag&drop events (dragstart, dragmove, dragend).

For the full list of events take a look into on() method documentation.

<iframe src="https://codesandbox.io/embed/github/konvajs/site/tree/master/vue-demos/events?hidenavigation=1&view=split&fontsize=10&module=/src/App.vue" style="width:100%; height:500px; border:0; border-radius: 4px; overflow:hidden;" sandbox="allow-modals allow-forms allow-popups allow-scripts allow-same-origin"></iframe>
You can’t perform that action at this time.