mirror of
https://github.com/konvajs/konva.git
synced 2025-09-18 18:27:58 +08:00
for event delegation, changed evt.node property to evt.targetNode
This commit is contained in:
@@ -154,7 +154,7 @@
|
||||
go._removeName(this.getName(), this._id);
|
||||
|
||||
// stop DD
|
||||
if(dd && dd.node && dd.node._id === this._id) {
|
||||
if(dd && dd.targetNode && dd.targetNode._id === this._id) {
|
||||
node._endDrag();
|
||||
}
|
||||
|
||||
@@ -947,7 +947,7 @@
|
||||
},
|
||||
_handleEvent: function(eventType, evt, compareShape) {
|
||||
if(evt && this.nodeType === SHAPE) {
|
||||
evt.node = this;
|
||||
evt.targetNode = this;
|
||||
}
|
||||
var stage = this.getStage();
|
||||
var el = this.eventListeners;
|
||||
|
Reference in New Issue
Block a user