Closed Alex-Sokolov closed 6 years ago
Optimized event listeners
When we call methods, event will passed as 1st argument:
@mousemove="onNodeMousemoveHandler"
We can use event modifiers:
@dragover.prevent
We can use $event variable to pass event where we want
$event
@drop="onNodeDropHandler($event, node)" @dblclick="emitNodeDblclick(node, $event)"
Thanks for the PR
Optimized event listeners
When we call methods, event will passed as 1st argument:
We can use event modifiers:
We can use
$event
variable to pass event where we want