mirror of
https://github.com/konvajs/konva.git
synced 2025-12-17 09:54:56 +08:00
removeEventListener for better HammerJS support
This commit is contained in:
@@ -418,11 +418,14 @@
|
||||
this.fire(evt.type, e);
|
||||
},
|
||||
addEventListener: function(type, handler) {
|
||||
// we to pass native event to handler
|
||||
// we have to pass native event to handler
|
||||
this.on(type, function(evt){
|
||||
handler.call(this, evt.evt);
|
||||
});
|
||||
},
|
||||
removeEventListener : function(type) {
|
||||
this.off(type);
|
||||
},
|
||||
/**
|
||||
* remove self from parent, but don't destroy
|
||||
* @method
|
||||
|
||||
Reference in New Issue
Block a user