improve shouldDrawHit behaviour

This commit is contained in:
Лаврёнов Антон
2014-05-06 16:21:25 +08:00
parent 43d0deb717
commit f648852975
4 changed files with 14 additions and 9 deletions

View File

@@ -1518,7 +1518,7 @@
// simulate event bubbling
var stopBubble = (eventType === MOUSEENTER || eventType === MOUSELEAVE) && ((compareShape && compareShape.isAncestorOf && compareShape.isAncestorOf(this)) || !!(compareShape && compareShape.isAncestorOf));
if(evt && !evt.cancelBubble && this.parent && (!stopBubble)) {
if(evt && !evt.cancelBubble && this.parent && this.parent.isListening() && (!stopBubble)) {
if(compareShape && compareShape.parent) {
this._fireAndBubble.call(this.parent, eventType, evt, compareShape.parent);
}