mirror of
https://github.com/konvajs/konva.git
synced 2025-10-08 00:14:23 +08:00
Merge pull request #359 from Namalee/Namalee-contextmenu-add-target
add "clicked shape" to the contextmenu event
This commit is contained in:
@@ -612,7 +612,9 @@
|
||||
}
|
||||
},
|
||||
_contextmenu: function(evt) {
|
||||
this._fire(CONTENT_CONTEXTMENU, { evt: evt });
|
||||
this._setPointerPosition(evt);
|
||||
var shape = this.getIntersection(this.getPointerPosition());
|
||||
this._fire(CONTENT_CONTEXTMENU, { evt: evt, target: shape });
|
||||
},
|
||||
_touchstart: function(evt) {
|
||||
this._setPointerPosition(evt);
|
||||
|
Reference in New Issue
Block a user