event fixes

This commit is contained in:
Anton Lavrenov
2018-03-01 13:47:38 +08:00
parent 2c17492ef2
commit ce40d752e8
2 changed files with 42 additions and 1 deletions

View File

@@ -486,6 +486,11 @@
this.targetShape._fireAndBubble(MOUSELEAVE, { evt: evt });
this.targetShape = null;
}
this._fire(MOUSEMOVE, {
evt: evt,
target: this,
currentTarget: this
});
}
// content event
@@ -702,6 +707,12 @@
if (shape.isListening() && shape.preventDefault() && evt.cancelable) {
evt.preventDefault();
}
} else {
this._fire(TOUCHMOVE, {
evt: evt,
target: this,
currentTarget: this
});
}
this._fire(CONTENT_TOUCHMOVE, { evt: evt });
}