mirror of
https://github.com/konvajs/konva.git
synced 2025-10-08 00:14:23 +08:00
added support for evt.shape so any event handler can have access to the shape that was interacted with
This commit is contained in:
3
dist/kinetic-core.js
vendored
3
dist/kinetic-core.js
vendored
@@ -830,6 +830,9 @@ Kinetic.Node.prototype = {
|
||||
* @param {Event} evt
|
||||
*/
|
||||
_handleEvents: function(eventType, evt) {
|
||||
if (this.className === 'Shape') {
|
||||
evt.shape = this;
|
||||
}
|
||||
var stage = this.getStage();
|
||||
this._handleEvent(this, stage.mouseoverShape, stage.mouseoutShape, eventType, evt);
|
||||
},
|
||||
|
2
dist/kinetic-core.min.js
vendored
2
dist/kinetic-core.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user