mirror of
https://github.com/konvajs/konva.git
synced 2025-10-15 12:34:52 +08:00
attr change events no longer bubble. updated functional test data urls
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
*/
|
||||
var Kinetic = {};
|
||||
Kinetic.Global = {
|
||||
BUBBLE_WHITELIST: ['mousedown', 'mousemove', 'mouseup', 'mouseover', 'mouseout', 'click', 'dblclick', 'touchstart', 'touchmove', 'touchend', 'tap', 'dbltap', 'dragstart', 'dragmove', 'dragend'],
|
||||
stages: [],
|
||||
idCounter: 0,
|
||||
tempNodes: [],
|
||||
|
@@ -762,7 +762,7 @@ Kinetic.Node = Kinetic.Class.extend({
|
||||
}
|
||||
|
||||
// simulate event bubbling
|
||||
if(!evt.cancelBubble && this.parent) {
|
||||
if(Kinetic.Global.BUBBLE_WHITELIST.indexOf(eventType) >= 0 && !evt.cancelBubble && this.parent) {
|
||||
this._handleEvent.call(this.parent, eventType, evt);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user