I have a Konva.Group which is draggable. Within this group I add another Konva.Group which has yet another draggable Konva.Group. So the relationship is like this:
parent group -> child group -> child group
Now when I try to drag my last draggable child I also get 'dragend' event in the parent, although the parent stays at the same position.
So I only get this parent 'dragend' event. The dragging of the child works correctly, it's just the parent event that seems not right.
The workaround that I found so far looks like this:
let _this = this;
this.on('dragmove', (evt) => {
if(evt.target._id == _this._id){
//my handler code
}
}
But is it a bug actually or expected behavior and I just need to somehow prevent event propagation?