mirror of
https://github.com/konvajs/konva.git
synced 2025-12-17 18:01:15 +08:00
evt.targetNode property for Hammer Event
This commit is contained in:
@@ -380,7 +380,9 @@
|
|||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
|
// some event aliases for third party integration like HammerJS
|
||||||
dispatchEvent: function(evt) {
|
dispatchEvent: function(evt) {
|
||||||
|
evt.targetNode = this;
|
||||||
this.fire(evt.type, evt);
|
this.fire(evt.type, evt);
|
||||||
},
|
},
|
||||||
addEventListener: function() {
|
addEventListener: function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user